Guerra
Member
Dear,
I would like to ask for help in modifying a script that I used on my server when it was still distro 0.4 !! It is a quest chest, where the player's name is engraved on the item obtained. As I am totally a layman in scripts, I ask everyone for help here. Below, I'll post my script used on my old 0.4 server and I would like to modify it and be able to use it in the new version I'm using TFS 1.3!
questgift.lua (old version 0.4, I want to change it to 1.3)
I am very grateful for the help of everyone who can contribute, I just ask why I am bad at codes and honestly I have very little time due to the work routine to study properly (forgive me for the spelling, my english is horrible ).
I would like to ask for help in modifying a script that I used on my server when it was still distro 0.4 !! It is a quest chest, where the player's name is engraved on the item obtained. As I am totally a layman in scripts, I ask everyone for help here. Below, I'll post my script used on my old 0.4 server and I would like to modify it and be able to use it in the new version I'm using TFS 1.3!
questgift.lua (old version 0.4, I want to change it to 1.3)
Lua:function onUse(cid, item, fromPosition, itemEx, toPosition) if item.uid == 7545 then queststatus = getPlayerStorageValue(cid,7545) if queststatus == -1 then doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Voce Achou Seu item.") local quest = doPlayerAddItem(cid,143,1) doItemSetAttribute(quest,"description","Esse item foi obtido por "..getPlayerName(cid)..".") setPlayerStorageValue(cid,7545,1) else doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "Voce ja pegou seu premio.") end end return 1 end
I am very grateful for the help of everyone who can contribute, I just ask why I am bad at codes and honestly I have very little time due to the work routine to study properly (forgive me for the spelling, my english is horrible ).