Hi!
I need to do this:
At start ,player will get: Spells button with runes inside .
But:
Spells button with items inside (in red circle) must be placed in necklace slot (in green circle)
Database (players_items) table:
Spells Button ID: 2000
Items ID's:
11662
11663
11664
11665
11666
11667
11668
11669
11661
Items inside the button must be placed in this order^ (up)
Can somebody help me?
#EDIT
Fixed!
If somebody need that script:
in creaturescripts/scripts/XXX.lua add:
in creaturescripts.xml add this line:
<event type="login" name="XXX" event="script" value="XXX.lua"/>
I need to do this:
At start ,player will get: Spells button with runes inside .
But:
Spells button with items inside (in red circle) must be placed in necklace slot (in green circle)
Database (players_items) table:
Spells Button ID: 2000
Items ID's:
11662
11663
11664
11665
11666
11667
11668
11669
11661
Items inside the button must be placed in this order^ (up)
Can somebody help me?
#EDIT
Fixed!
If somebody need that script:
in creaturescripts/scripts/XXX.lua add:
Code:
function onLogin(cid)
if getPlayerLevel(cid) == 1 and getPlayerStorageValue(cid, 133335) == -1 then
local button = doPlayerAddItem(cid, 2000, 1)
doAddContainerItem(button, 11662, 1)
doAddContainerItem(button, 11663, 1)
doAddContainerItem(button, 11664, 1)
setPlayerStorageValue(cid, 133335, 1)
elseif getPlayerStorageValue(cid, 133335) == 1 then
doPlayerSendCancel(cid, "Welcome Again!")
end
return true
end
in creaturescripts.xml add this line:
<event type="login" name="XXX" event="script" value="XXX.lua"/>
Last edited: