-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lead0b110010100
authored and
Lead0b110010100
committed
Apr 23, 2020
1 parent
dd025d6
commit eb5dc35
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
quest goldbars begin | ||
state start begin | ||
when 80003.use or 80004.use or 80005.use or 80006.use or 80007.use begin | ||
local barrenInfo = { | ||
[80003] = 50000000, | ||
[80004] = 100000000, | ||
[80005] = 250000000, | ||
[80006] = 500000000, | ||
[80007] = 1000000000, | ||
} | ||
|
||
local iVnum = item.vnum | ||
|
||
if pc.get_money() + barrenInfo[iVnum] >= GOLD_MAX or pc.get_money() + barrenInfo[iVnum] < 0 then | ||
syschat("Du trägst zuviel Yang bei dir.") | ||
return | ||
end | ||
|
||
item.remove() | ||
pc.change_gold(barrenInfo[iVnum]) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,4 @@ warehouse_item_destroyer.lua | |
soulstone.lua | ||
level_info.lua | ||
change_name_item.lua | ||
goldbars.lua |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters