mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-05-03 02:59:21 +02:00
introduce 50 and 100 shop points scrolls
This commit is contained in:
parent
4d0b37e730
commit
7c0a2f6da7
@ -196,6 +196,8 @@
|
||||
<action itemid="6549" script="misc/djinn_quest_pass.lua" />
|
||||
<action itemid="6551" script="misc/djinn_quest_pass.lua" />
|
||||
<action itemid="3252" script="misc/postman_quest_pass.lua" />
|
||||
<action itemid="6554" script="misc/shop_points_scroll.lua" />
|
||||
<action itemid="6555" script="misc/shop_points_scroll.lua" />
|
||||
|
||||
<!-- Dolls -->
|
||||
<action itemid="5080" script="misc/dolls.lua" />
|
||||
|
15
data/actions/scripts/misc/shop_points_scroll.lua
Normal file
15
data/actions/scripts/misc/shop_points_scroll.lua
Normal file
@ -0,0 +1,15 @@
|
||||
local hundredPoints = 6554
|
||||
local fiftyPoints = 6555
|
||||
|
||||
function onUse(player, item, fromPosition, target, toPosition)
|
||||
if item:getId() == hundredPoints then
|
||||
db.query("UPDATE znote_accounts SET points = points + 100 WHERE account_id = ".. player:getAccountId() .."")
|
||||
elseif item:getId() == fiftyPoints then
|
||||
db.query("UPDATE znote_accounts SET points = points + 50 WHERE account_id = ".. player:getAccountId() .."")
|
||||
end
|
||||
|
||||
item:getPosition():sendMagicEffect(3)
|
||||
item:remove()
|
||||
player:save()
|
||||
return true
|
||||
end
|
@ -26947,7 +26947,7 @@ Attributes = {Weight=250}
|
||||
|
||||
TypeID = 5952
|
||||
Name = "a poem scroll"
|
||||
Description = "It contains a love poem, written by an unknown elven poet."
|
||||
Description = "It contains a love poem, written by an unknown elven poet"
|
||||
Flags = {Take}
|
||||
Attributes = {Weight=120}
|
||||
|
||||
@ -29752,10 +29752,16 @@ Flags = {MultiUse,Take,Weapon}
|
||||
Attributes = {Weight=5800,SlotType=TWOHANDED,WeaponType=AXE,Attack=49,Defense=15}
|
||||
|
||||
TypeID = 6554
|
||||
Name = "" # this is nothing in client
|
||||
Name = "a 100 points scroll"
|
||||
Description = "It grants you 100 shop points"
|
||||
Flags = {Take}
|
||||
Attributes = {Weight=120}
|
||||
|
||||
TypeID = 6555
|
||||
Name = "" # this is nothing in client
|
||||
Name = "a 50 points scroll"
|
||||
Description = "It grants you 50 shop points"
|
||||
Flags = {Take}
|
||||
Attributes = {Weight=120}
|
||||
|
||||
TypeID = 6556
|
||||
Name = "a tic-tac-toe token"
|
||||
|
Loading…
x
Reference in New Issue
Block a user