OTcreator
Active Member
- Joined
- Feb 14, 2022
- Messages
- 439
- Solutions
- 1
- Reaction score
- 48
Hello!
I need rewrite this to 1.X [1.4.2].
This is no full code.
I have problem with getItemCount.
I need rewrite this to 1.X [1.4.2].
This is no full code.
I have problem with getItemCount.
Lua:
if (getPlayerStorageValue(cid, STORAGE1) == EMPTY_STORAGE) and getItemCountFromPosition(nameItem1, getItem1) == 100 and getItemCountFromPosition(nameItem2, getItem2) == 50 then
doRemoveItem(getTileItemById(getItem1,nameItem1).uid,100)
doRemoveItem(getTileItemById(getItem2,nameItem2).uid,50)
doPlayerAddOutfit(cid,CITIZEN,2)
doSendMagicEffect({x=1918,y=1232,z=5}, CONST_ME_HITBYFIRE)
setPlayerStorageValue(cid, STORAGE1, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have unlocked second citizen addon!")