Name: InGame Quest Maker
Ver: 8.1
Script: Talkaction
Autor: Haxy
---
Please it improves.
Ver: 8.1
Script: Talkaction
Autor: Haxy
PHP:
function onSay(cid,words,param)
idi1,idi2,uniq,stor = string.find(param, '(%d*),(%d*)')
doPlayerSendTextMessage(cid,22,'Quest criada. \n Unique Id: '..uniq..'\nStorage: '..stor..'')
doPlayerSendTextMessage(cid,24,'Arquivo .lua:\n \nfunction onUse(cid, item, frompos, item2, topos)\n if getPlayerStorageValue(cid,'..stor..') == -1 then\ndoPlayerSendTextMessage(cid,22,"MENSAGEM")\ndoPlayerAddItem(cid,ITEM,QUANTIDADE)\nelse\ndoPlayerSendTextMessage(cid,22,"It is empty.")\nend\nend\n \n \n')
doPlayerSendTextMessage(cid,24,'Actions.xml\n \n<action uniqueid="'..uniq..'" script="AQUIVO.lua" />')
end
PHP:
<talkaction words="/qm" script="quest_maker.lua" />
Please it improves.