• logo_cipsoft
    Nowe serwery zostały otwarte 19 Lut 2025:
    Noctalia (Open PvP) Ignitera (Open PvP) us_logo Xybra (Open PvP)

NPC NPC Premium Arena (Teleporter)

Status
Zamknięty.

Restles

Senior User
Dołączył
Sierpień 31, 2012
Posty
616
Liczba reakcji
51
Witam.
Potrzebuje NPC Premium Teleporter ktory by teleportowal graczy na PACC z FACC
Posiada ktos?
 
Odp: NPC Premium Arena (Teleporter)

~~RefResh~~
 
Odp: NPC Premium Arena (Teleporter)

@up po co ci npc premium tp, mo?esz zrobic premmium door tak jak vip door przerobi? kod i juz wstawic tp i masz.
tu masz przyk?adowy skrypt jak to si? robi:
http://tibia.net.pl/threads/49548-8-x-Premium-door
To jest to samo tylko zabudowujesz naoko?o te drzwi i masz.
 
Odp: NPC Premium Arena (Teleporter)

Wiem, ale ja chcem po prostu teleportera a nie jakies zabudowane cos -,-

---Aktualizacja---

~~RefResh~~
 
Odp: NPC Premium Arena (Teleporter)

Prosz? o to chodzi?o ?

nazwa.xml
PHP:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Teleport Machine" script="data/npc/scripts/nazwa skryptu.lua" walkinterval="0" floorchange="0">
<health now="150" max="150"/>
<look typeex="1286"/>
<parameters>
 <parameter key="message_greet" value="Hello |PLAYERNAME|. I can teleport you to other's planet's ! Say {free} or {pacc} to get more informations."/>
       <parameter key="message_farewell" value="Good bye."/>
 <parameter key="message_walkaway" value="Farewell then.." />
 <parameter key="module_shop" value="1" />
 <parameter key="shop_buyable" value="" />
</parameters>
</npc>







nazwa.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
--Na Facc
local travelNode = keywordHandler:addKeyword({'nazwa planety...'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wanna go to Beginner Island for free, are you sure ?'})
	travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = false, level = 1, cost = 0, destination = {x=979, y=728, z=6} })
	travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})

--Skrypt na Pacc
local travelNode = keywordHandler:addKeyword({'nazwa gdzie tepa'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you wanna go to M2 for 200 zeni, are you sure ?'})
	travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 20, cost = 200, destination = {x=1170, y=1164, z=6} })
	travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Next time maybe.'})

keywordHandler:addKeyword({'free'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to nazwa planety,nazwa planety2 Planet for 200 zeni anywhere !'})
keywordHandler:addKeyword({'pacc'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to nazwa planety pacc,nazwa planetypacc2 for 200 zeni anywhere !'})

npcHandler:addModule(FocusModule:new())

Tam gdzie nazwa planety dodajesz swoj? w?asn?...

Jak pomog?em mo?esz da? +
 
Status
Zamknięty.
Do góry