Kramer infernal
I work alone =/
- Joined
- Jun 18, 2008
- Messages
- 225
- Reaction score
- 0
Well, I have this Idea since a long long time ago, but never though the codes to realize it...
there it comes
Player = P
NPC = NPC...
P: Hi
NPC: Be greeted young Player
P: Mission
NPC: I have problems with demons... I really need those out of my thoughts
P: Demons
NPC: Do you want to go to a hunt of demons?
P: Yes
NPC: Then kill for me 1.000 demons and return, I'll give you a reward
After
P: Hi
NPC: Be greeted young Player
P: Mission
NPC: Holy God, thanks for killing them, take, 5 millions of exp and a Demon Helmet for your bravery!
END
Well... I was thinking, the monsters I think you can put scripts to them... So, the think is to create a Function like
It would some like that, and in demon.xml, you should put script="scriptofdemon.xml"/>
The Idea I think its nice, and it give to Tibia some more of games like Silkroad and so... killing monsters to get a reward
you will be with me?
there it comes
Player = P
NPC = NPC...
P: Hi
NPC: Be greeted young Player
P: Mission
NPC: I have problems with demons... I really need those out of my thoughts
P: Demons
NPC: Do you want to go to a hunt of demons?
P: Yes
NPC: Then kill for me 1.000 demons and return, I'll give you a reward
After
P: Hi
NPC: Be greeted young Player
P: Mission
NPC: Holy God, thanks for killing them, take, 5 millions of exp and a Demon Helmet for your bravery!
END
Well... I was thinking, the monsters I think you can put scripts to them... So, the think is to create a Function like
Code:
Function onDeathMonster(cid,monster,player,killer)
local area = {x=100, y=100, z=7}
local endarea = {x=160, y=160, z=7}
if corpseofdemon is (area to endarea) and getPlayerStorageValue(cid,storagequest) == 1 then (<-- or some like that, my pc is debugged and I can't access to lua functions)
doPlayerSendTextMessage(cid,22,'You have killed 1 Demon')
end
end
It would some like that, and in demon.xml, you should put script="scriptofdemon.xml"/>
The Idea I think its nice, and it give to Tibia some more of games like Silkroad and so... killing monsters to get a reward
