atomic chavez
Hi there
Helo, I was wondering if It was possible to make a ring wearable only for those with premium account.
And another thing...
How can I make so Only premium accounts are able to travel to Yalahar? Thais and venore remain for free
XML
LUA
Yes, I've done some research here in forums but I didnt find any npc that could take you to NON premium boats and also to PREMIUM boats.
PHP:
<item id="2168" article="a" name="life ring">
<attribute key="weight" value="80"/>
<attribute key="slotType" value="ring"/>
<attribute key="transformEquipTo" value="2205"/>
<attribute key="stopduration" value="1"/>
<attribute key="showduration" value="1"/>
<attribute key="manaGain" value="50"/>
<attribute key="manaTicks" value="2000"/>
</item>
And another thing...
How can I make so Only premium accounts are able to travel to Yalahar? Thais and venore remain for free
XML
PHP:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Marcus Fenix" script="data/npc/scripts/defaultmarcus.lua" walkinterval="2000" floorchange="0">
<health now="150" max="150"/>
<look type="268" head="79" body="12" legs="0" feet="14" corpse="2212" addons="2" />
<parameters>
<parameter key="module_travel" value="1"/>
<parameter key="message_greet" value="Hello |PLAYERNAME|. I can bring you to Thais, Venore and to Yalahar."/>
<parameter key="travel_destinations" value="thais,990,573,6,100;venore,1546,741,6,100;yalahar,456,212,6,100"/>
</parameters>
</npc>
LUA
PHP:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
-- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions!
keywordHandler:addKeyword({'travel'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = "I can take you to thais, venore and yalahar. "})
npcHandler:addModule(FocusModule:new())
Yes, I've done some research here in forums but I didnt find any npc that could take you to NON premium boats and also to PREMIUM boats.