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

Npc... level

ReDe

New Member
Joined
Mar 5, 2009
Messages
48
Reaction score
0
Hi i need npc which will telepots from levels.

For example, dialog:
Player levels is 50.
Player : Hi
NPC : Hello Player. If you say travel to hear my boat offer.
Player : Travel
NPC : I can travel with you to : Volcano. So?
Player : Volcano
NPC : Ohh... I'm sory, You need 100 levels use with my offers.

Players level is 100.
Player : Hi
NPC : Hello Player. If you say travel to hear my boat offer.
Player : Travel
NPC : I can travel with you to : Volcano. So?
Player : Volcano
NPC :If you pay 100 gold coins for swim my boat?
Player : yes
NPC : Good bye then.
(teloport player to Volcano.

There is possible ?
 
Lua:
if(getPlayerLevel(cid) < 100) then
   self.say('Sorry no level blabla')
else
   self.say('where you wanna go')
end
 
<npc name="Grapol" script="data/npc/scripts/travel.lua" walkinterval="2000" floorchange="0">
<health now="150" max="150"/>
<look type="264" head="78" body="116" legs="95" feet="121" corpse="6081"/>
<parameters>
<parameter key="message_greet" value="Hello |PLAYERNAME|. If you say {travel} to hear my boat offer. " />
<parameter key="module_travel" value="1" />
<parameter key="travel_destinations" value="medusa island,419,880,2,800" />
<parameter key="module_keywords" value="1" />
<parameter key="keywords" value="job;name;offer;help;mission;travel" />
<parameter key="keyword_reply1" value="I am the captain of this ship." />
<parameter key="keyword_reply2" value="My name is Steven. Why do you ask?" />
<parameter key="keyword_reply3" value="I offer only the possability to travel to far away cities on this continent." />
<parameter key="keyword_reply4" value="Do I look like a helpful guy to you?" />
<parameter key="keyword_reply5" value="What are you talking about?" />
<parameter key="keyword_reply6" value="I can travel with you to : {Medusa Island}. So?" />
</parameters>
</npc>


Where this added??
 
Back
Top