What's new

Inny Oracle

TenTypSwir

NNSTORY.EU Developer
Joined
Jun 8, 2010
Messages
1,657
Reaction score
117
Witam mam skrypt na Oracle ale taki u kt?rego trzeba wybra? profesj?...A potrzebny mi bez jej wyboru Wi?c prosz? o pomoc...
 

TenTypSwir

NNSTORY.EU Developer
Joined
Jun 8, 2010
Messages
1,657
Reaction score
117
Odp: Inny Oracle

R
e
f
r
e
s
h

plx fast help
 

DudoCriz

Active User
Joined
Aug 29, 2009
Messages
123
Reaction score
3
Age
30
Odp: Inny Oracle

Ale na jakiej zasadzie ma dzialac npc opisz dok?adnie jesli mozesz
 

TenTypSwir

NNSTORY.EU Developer
Joined
Jun 8, 2010
Messages
1,657
Reaction score
117
Odp: Inny Oracle

Chodzi mi o takiego NPC kt?ry nir pyta o profesje tylko o miasto i wtedy wybieramy miasto...hi>nazwa miasta>yes i mamy zmienione spawn i temple na:

-Enigma 1000/1000/7
-Serella 1500/1500/7
-Mavena 1300/1000/6


Aha i na 8lvl mi potrzebny...
 
Last edited:

DudoCriz

Active User
Joined
Aug 29, 2009
Messages
123
Reaction score
3
Age
30
Odp: Inny Oracle

to proste jezeli masz taki problem skopiuj npc od jakiejs lodzi daj mu nazwe Oracle i wstukaj wspolrzedne do skryptu ;)
@edit
ok rob plik oracle.xml i wrzuc do niego to
Code:
<npc name="Oracle" script="data/npc/scripts/oraacle.lua" walkinterval="90000" floorchange="0" access="5" level="1" maglevel="1">
    <health now="150" max="150"/>
    <look type="1448" corpse="2212"/>
    <parameters>
        
    </parameters>
</npc>
Nastepnie robisz plik oraacle.lua i dodajesz
Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)



-- OTServ event handling functions start
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
-- OTServ event handling functions end


-- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions!
local travelNode = keywordHandler:addKeyword({'enigma city'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Czy jestes pewien ze chcesz plynac do enigma city?'})
    travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = false, level = 0, cost = 0, destination = {x=1000, y=1000, z=7} })
local travelNode = keywordHandler:addKeyword({'Serella'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Czy jestes pewien ze chcesz plynac do Serella?'})
    travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = false, level = 0, cost = 0, destination = {x=1500, y=1500, z=7} })
local travelNode = keywordHandler:addKeyword({'Mavena'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Czy jestes pewien ze chcesz plynac do Mavena?'})
    travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = false, level = 0, cost = 0, destination = {x=1300, y=1000, z=6} })
    travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Nastepnym razem sie zastanow'})

keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Moge zabrac do \'Enigma City\' \'Serella\' oraz \'Mavena\' jesli tylko tego zapragniesz.'})

-- Makes sure the npc reacts when you say hi, bye etc.
npcHandler:addModule(FocusModule:new())
Npc gada z graczem na ka?dym lvlu dlatego na mapie zrob jakas bramke lvlow? przed npc i b?dzie git ;)
<><>Skrypt nie testowany<><> je?li pomog?em daj reputa
 
Last edited:

TenTypSwir

NNSTORY.EU Developer
Joined
Jun 8, 2010
Messages
1,657
Reaction score
117
Odp: Inny Oracle

Sory ale nie dzia?a nie wiem czemu... :[
PLX O SZYBKA POMOC PLX

Za pomoc dam +
 

Yoxino

Advanced User
Joined
Aug 12, 2009
Messages
478
Reaction score
51
Odp: Inny Oracle

Jaki jest problem ze skryptem?
Silnik wyrzuca jakie? b??dy?
Napewno dobrze doda?e? skrypt?

Nikt nie jest jasnowidzem. Sorki ale samo "Sory ale nie dzia?a nie wiem czemu... :[" nam nie wiele m?wi :)

Pozdrawiam!
Yoxino
 

TenTypSwir

NNSTORY.EU Developer
Joined
Jun 8, 2010
Messages
1,657
Reaction score
117
Odp: Inny Oracle

Potrzebny mi skrypt na oracle co zmienia tylko temple id i nie pyta o profe da sie takiego zrobi??je?li tak to prosz? o niego....(TEMPLE ID sam edytuje) aha i ?eby by?y 3 miasta do wyboru np piszemy: hi>enigma>yes lub hi>merosa>yes .... tylko zeby byly 3 do wyboru
 
Top