• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TalkAction Quest Maker in Game

bomba

Member
Joined
Feb 26, 2008
Messages
635
Reaction score
7
Location
Brazil
Name: InGame Quest Maker
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.
 
Well, from what I can see you write in param a storage and an unique id and it sends you ready script + what to type in actions.xml :p
 
Back
Top