• 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!

3 problems that killing me!

Graxic

New Member
Joined
Dec 11, 2007
Messages
8
Reaction score
0
Hello got a 3 serious problem!

1) How i can make a quest with a dead treee... like a chest, but wirth dead tree... (Like the tree to go to BK on TIBIA) i already have tried some of guides here but them didnt work on my server : theforgottenserver-v0.2.2-win32gui What can i do? .. it's 8.42... when i make work my OT appears next message :
[02/06/2009 10:21:12] Warning: [Event::loadScript] Can not load script. data/actions/scripts/quests/fuente_quest.lua
[02/06/2009 10:21:12] data/actions/scripts/quests/fuente_quest.lua:7: unexpected symbol near '['


2) How i can make talking grounds... i mean... when some person is crossing some ground... appears a message like : "Welcome to Dungeon"?



3) How to make a quest style RPG... ( You talk to npc, he explain you he's history and ask for help... you should go to kill some monster, bring him some object... and back to him... so he give you a reward!
It's possible to do something like that?
Some one know?

Thanks! Waiting for answers!
 
Hello,

Well, to making the quest you need add the Action id in your Dead three using of course your map editor, later...

Copy the script to your Action/scrips folder with this name Questnew.lua

LUA:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 2697 then
queststatus = getPlayerStorageValue(cid,6969)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a ITEM.")
doPlayerAddItem(cid,2666,100)
doSendMagicEffect(topos,12)
setPlayerStorageValue(cid,6969,1)
else
doPlayerSendTextMessage(cid,22,"This is Empty.")
end
end
return 1
end





and paste in actions.xml this

<action itemid="2697" script="questnew.lua" />
 
@up

Of course you have to make a tree Unique Id: 2697

;)

and Insert to actions.xml:
Code:
<action uniqueid="2697" script="questnew.lua" />

Not this:

Code:
<action itemid="2697" script="questnew.lua" />
;)


And if u are using lastest TFS then

Code:
<action uniqueid="2697" event="script" value="questnew.lua" />
 
Thanks Quas! For your corrects! Quest finally works now! Some one can explain me the other 2 questions?

On Otland... well here. I have found a interesting Guide.. that can resolve on of my questions... but i dont know how to use it ... Someone explain me?
http://otland.net/f163/multi-quest-26985/

What and where i should write i mean. Thanks.
 
Back
Top