Ir para conteúdo
  • Cadastre-se

Pokemon Dash Advanced


Posts Recomendados

  • Respostas 98
  • Created
  • Última resposta

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Pokemon Dash Advanced • autor: mastercraft/brun123 • versão do distro: TFS 0.36 PL1 (8.54) Agora, o servidor apresenta outras caractériscas que serão as primeiras vistas em um servidor

Ok,irei adiciona-lo. Obrigado.Att GuuhTorres.

Ok,irei lhe aceitar ! Obrigado.Att GuuhTorres.

Obrigado, agora consegui a maioria dos npc's, menos o dos clothes (roupas), sabe o nome dele? procurei mais não achei :/

Nome do npc é nila vou postar ele e o script para você.

data/npc/ cria um arquivo.xml com o nome de nila

Cole isso dentro:

<?xml version="1.0" encoding="UTF-8"?>

<npc name="Nila" script="clothes.lua" walkinterval="3500" floorchange="0" speed="90">

<health now="150" max="150"/>

<look type="594" head="91" body="114" legs="86" feet="0"/>

<parameters>

<parameter key="message_greet" value="Welcome to the clothing shop! Do you want to see my {offers}?"/>

<parameter key="message_farewell" value="Bye! Come back whenever you want to buy a clothing!"/>

<parameter key="message_idletimeout" value="When you think you should, you can buy clothes with me!"/>

<parameter key="message_walkaway" value="Come back soon, to the clothing store with the lowest prices!"/>

</parameters>

</npc>

Depois em data/npc/script/

crie um arquivo.lua com o nome de clothes e cole isso dentro.

local keywordHandler = KeywordHandler:new()

local npcHandler = NpcHandler:new(keywordHandler)

NpcSystem.parseParameters(npcHandler)

local talkState = {}

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

function creatureSayCallback(cid, type, msg)

if(not npcHandler:isFocused(cid)) then

return false

end

local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid

if(msgcontains(msg, 'gentleman') and talkState[talkUser] == 1) then

selfSay('So you want to buy the gentleman clothes right? This will cost you 278 dollars, are you taking it?')

talkState[talkUser] = 3

elseif(msgcontains(msg, 'athletic') and talkState[talkUser] == 1) then

selfSay('You must be very energetic! This clothing costs 165 dollars, do you want to buy it?')

talkState[talkUser] = 4

elseif(msgcontains(msg, 'elite') and talkState[talkUser] == 1) then

selfSay('Wow, you must be a respected trainer! This will cost 322 dollars, are you buying it?')

talkState[talkUser] = 5

elseif(msgcontains(msg, 'lady') and talkState[talkUser] == 2) then

selfSay('Great! This clothes are very worthy and they cost 211 dollars, do you accept?')

talkState[talkUser] = 6

elseif(msgcontains(msg, 'elite') and talkState[talkUser] == 2) then

selfSay('This will make you look like the best trainer! It costs 280 dollars, do you to take it?')

talkState[talkUser] = 7

elseif(msgcontains(msg, 'athletic') and talkState[talkUser] == 2) then

selfSay('You must be very healthy! This clothing costs 120 dollars, do you want it?')

talkState[talkUser] = 8

elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 3) then

if getPlayerStorageValue(cid, 101) <= 0 then

if(doPlayerRemoveMoney(cid, 27800)) then

selfSay('Wow, it fits perfect on you! Thanks for the preferency.')

setPlayerStorageValue(cid, 101, 1)

doPlayerSendOutfitWindow(cid)

talkState[talkUser] = 1

else

selfSay('Oh dear, you can\'t afford for this clothes.')

talkState[talkUser] = 1

end

elseif getPlayerStorageValue(cid, 101) == 1 then

selfSay('You have already bought this clothes sweetie!')

talkState[talkUser] = 1

end

elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 4) then

if getPlayerStorageValue(cid, 104) <= 0 then

if(doPlayerRemoveMoney(cid, 16500)) then

selfSay('Very nice choice! Thanks for it!')

setPlayerStorageValue(cid, 104, 1)

doPlayerSendOutfitWindow(cid)

talkState[talkUser] = 1

else

selfSay('Oh dear, you can\'t afford for this clothes.')

talkState[talkUser] = 1

end

elseif getPlayerStorageValue(cid, 104) == 1 then

selfSay('You have already bought this clothes sweetie!')

talkState[talkUser] = 1

end

elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 5) then

if getPlayerStorageValue(cid, 100) <= 0 then

if(doPlayerRemoveMoney(cid, 32200)) then

selfSay('Now you look like a real trainer, go for it!')

setPlayerStorageValue(cid, 100, 1)

doPlayerSendOutfitWindow(cid)

talkState[talkUser] = 1

else

selfSay('Oh dear, you can\'t afford for this clothes.')

talkState[talkUser] = 1

end

elseif getPlayerStorageValue(cid, 100) == 1 then

selfSay('You have already bought this clothes sweetie!')

talkState[talkUser] = 1

end

elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 6) then

if getPlayerStorageValue(cid, 101) <= 0 then

if(doPlayerRemoveMoney(cid, 21100)) then

selfSay('Thanks! Now you can try on the lady outfit.')

setPlayerStorageValue(cid, 101, 1)

doPlayerSendOutfitWindow(cid)

talkState[talkUser] = 2

else

selfSay('Sorry mrs, you can\'t afford for this clothes.')

talkState[talkUser] = 2

end

elseif getPlayerStorageValue(cid, 101) == 1 then

selfSay('You have already bought this clothes!')

talkState[talkUser] = 2

end

elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 7) then

if getPlayerStorageValue(cid, 100) <= 0 then

if(doPlayerRemoveMoney(cid, 28000)) then

selfSay('You look very nice! You are a very advanced trainer!')

setPlayerStorageValue(cid, 100, 1)

doPlayerSendOutfitWindow(cid)

talkState[talkUser] = 2

else

selfSay('Sorry mrs, you can\'t afford for this clothes.')

talkState[talkUser] = 2

end

elseif getPlayerStorageValue(cid, 100) == 1 then

selfSay('You have already bought this clothes!')

talkState[talkUser] = 2

end

elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 8) then

if getPlayerStorageValue(cid, 104) <= 0 then

if(doPlayerRemoveMoney(cid, 12000)) then

selfSay('Men love athletic girls, hehe. Just kidding, you are beautiful!')

setPlayerStorageValue(cid, 104, 1)

doPlayerSendOutfitWindow(cid)

talkState[talkUser] = 2

else

selfSay('Sorry mrs, you can\'t afford for this clothes.')

talkState[talkUser] = 2

end

elseif getPlayerStorageValue(cid, 104) == 1 then

selfSay('You have already bought this clothes!')

talkState[talkUser] = 2

end

elseif(msgcontains(msg, 'no') and talkState[talkUser] == 3) then

selfSay('Yea, you are right. This was not the best for you.')

talkState[talkUser] = 1

elseif(msgcontains(msg, 'no') and talkState[talkUser] == 4) then

selfSay('Yea, you are right. This was not the best for you.')

talkState[talkUser] = 1

elseif(msgcontains(msg, 'no') and talkState[talkUser] == 5) then

selfSay('Yea, you are right. This was not the best for you.')

talkState[talkUser] = 1

elseif(msgcontains(msg, 'no') and talkState[talkUser] == 6) then

selfSay('Yea, you are right. This was not the best for you.')

talkState[talkUser] = 2

elseif(msgcontains(msg, 'no') and talkState[talkUser] == 7) then

selfSay('Yea, you are right. This was not the best for you.')

talkState[talkUser] = 2

elseif(msgcontains(msg, 'no') and talkState[talkUser] == 8) then

selfSay('Yea, you are right. This was not the best for you.')

talkState[talkUser] = 2

elseif(msgcontains(msg, 'yes') or msgcontains(msg, 'offer') or msgcontains(msg, 'list') or msgcontains(msg, 'clothes') and talkState[talkUser] == 20) then

if getPlayerSex(cid) == 1 then

selfSay('I can sell you some {gentleman} clothes, or else you could try the {elite} pokemon trainer clothes, or maybe an {athletic} clothes, what do you think?')

talkState[talkUser] = 1

elseif getPlayerSex(cid) == 0 then

selfSay('Hmm, what about some {lady} clothes? If you don\'t like it i can sell you an {elite} pokemon trainer clothes, or maybe the newest clothes available, the {athletic} clothes.')

talkState[talkUser] = 2

end

end

return true

end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)

npcHandler:addModule(FocusModule:new())

Depois use o map editor pra por o npc no mapa ou faça ele in-game com o comando /n nila

Donate

 

Link para o post

Agora sim links arrumados, to baixando novamente, vou postar todos os bugs que encontrar e se possivel a solução junto.

Rep+

Arranje um emprego. Se case.

Tenha filhos. Siga a moda.

Aja normalmente. Ande na calçada.

Assista TV. Obdeça as leis.

Guarde dinheiro para a velhice.

Agora repita comigo: Eu sou livre.

Link para o post
  • 3 weeks later...

Alguem ai tem npc que pinta balls? to precisando urgente ake e eu jah tenhu as balls configuradas, dpois eu posso ate passa a sprite da minha master ball pra vcs ;*

--- rep mais pra quem me ajuda ----

Link para o post

Alguem ai tem npc que pinta balls? to precisando urgente ake e eu jah tenhu as balls configuradas, dpois eu posso ate passa a sprite da minha master ball pra vcs ;*

--- rep mais pra quem me ajuda ----

data/NPC/script cria um arquivo .lua


local keywordHandler = KeywordHandler:new()

local npcHandler = NpcHandler:new(keywordHandler)

NpcSystem.parseParameters(npcHandler)

local talkState = {}

local states = {'1', '2', '3', '4', '5', '6'}

local store = {1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023, 1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1039, 1040, 1041, 1042, 1043, 1044, 1045, 1046, 1047, 1048, 1049, 1050, 1051, 1052, 1053, 1054, 1055, 1056, 1057, 1058, 1059, 1060, 1061, 1062, 1063, 1064, 1065, 1066,  1067, 1068, 1069, 1071, 1072, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085, 1086, 1087, 1088, 1089, 1090, 1091, 1092, 1093, 1094, 1095, 1096, 1097, 1098, 1099, 1100, 1101, 1102, 1103, 1104, 1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114, 1115, 1116, 1117, 1118, 1119, 1120, 1121, 1122, 1123, 1124, 1125, 1126, 1127, 1128, 1129, 1130, 1131, 1132, 1133, 1134, 1135, 1136, 1137, 1138, 1139, 1140, 1141, 1142, 1143, 1144, 1145, 1146, 1147, 1148, 1149, 1150, 1151}

local unlock = {}

local pokeballs = {'2222', '2208'}

local pokeballss = {'2220', '2208'}


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


function creatureSayCallback(cid, type, msg)

if(not npcHandler:isFocused(cid)) then

return false 

end 


local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid 


-- Conversa Jogador/NPC 

if(msgcontains(msg, 'Job') or msgcontains(msg, 'job')) then

selfSay('I paint Pokeball, choice between {Ultra ball}, {Poke ball} and {Cloud ball}.', cid)

elseif(msgcontains(msg, 'Ultra Ball') or msgcontains(msg, 'ultra ball')) then

selfSay('Do you really want to paint ultra ball??', cid)

talkState[talkUser] = 1

elseif(msgcontains(msg, 'Poke Ball') or msgcontains(msg, 'poke ball')) then

selfSay('Do you really want to paint poke ball??', cid)

talkState[talkUser] = 2


-- Confirmação da Compra 

elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then

if isInArray(pokeballs, getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid) and doPlayerRemoveMoney(cid, 35000) then

selfSay('Thanks!', cid)

local feet = getPlayerSlotItem(cid, CONST_SLOT_FEET)

local maxh = tonumber(getItemAttribute(feet.uid, "poke"):match("/(.+)]"))

doItemSetAttribute(feet.uid, "poke", getItemAttribute(feet.uid, "poke"):sub(1, findLetter(getItemAttribute(feet.uid, "poke"), "[")) .. maxh .. getItemAttribute(feet.uid, "poke"):sub(findLetter(getItemAttribute(feet.uid, "poke"), "/")))

doTransformItem(feet.uid, 2220)

talkState[talkUser] = 0

else 

selfSay('Sorry, make sure you have enough money and if the the ball is in the correct slot.', cid)

talkState[talkUser] = 0 

end 

elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 2) then

if isInArray(pokeballss, getPlayerSlotItem(cid, CONST_SLOT_FEET).itemid) and doPlayerRemoveMoney(cid, 20000) then

selfSay('Thanks!', cid)

local feet = getPlayerSlotItem(cid, CONST_SLOT_FEET)

local maxh = tonumber(getItemAttribute(feet.uid, "poke"):match("/(.+)]"))

doItemSetAttribute(feet.uid, "poke", getItemAttribute(feet.uid, "poke"):sub(1, findLetter(getItemAttribute(feet.uid, "poke"), "[")) .. maxh .. getItemAttribute(feet.uid, "poke"):sub(findLetter(getItemAttribute(feet.uid, "poke"), "/")))

doTransformItem(feet.uid, 2222)

talkState[talkUser] = 0

else 

selfSay('Sorry, make sure you have enough money and if the the ball is in the correct slot.', cid)

talkState[talkUser] = 0

end  

end

return TRUE

end


npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)

npcHandler:addModule(FocusModule:new())

data/NPC cria um arquivo .xml

<?xml version="1.0" encoding="UTF-8"?>

<npc name="Deka" script="paintball.lua" floorchange="0" speed="0">

	    <health now="150" max="150"/>

	    <look type="160" head="114" body="0" legs="125" feet="0"/>

	    <parameters>

					    <parameter key="message_greet" value="Hi, I can change your Pokeballs, tell me which style would

you want. Make sure your ball is on the slot POKEBALL."/>

					    <parameter key="message_farewell" value="Good bye."/>

					    <parameter key="message_idletimeout" value="Next Please..."/>

					    <parameter key="message_walkaway" value="Next Please..."/>

	    </parameters>

</npc>

aí só tá configurado pra ultra ball e poke ball.. usa como base pra fazer o resto.

Arranje um emprego. Se case.

Tenha filhos. Siga a moda.

Aja normalmente. Ande na calçada.

Assista TV. Obdeça as leis.

Guarde dinheiro para a velhice.

Agora repita comigo: Eu sou livre.

Link para o post

Vlw + REP. alguem ai tem o catch.lua e o system.lua funcionando aqui ta assim

[20/04/2012 23:37:41] Pokemon Dash Advanced (1.0), last compiled at Jan 6 2012.

[20/04/2012 23:37:41] Credits to all TFS team (Elf, slawkens, Talaturen, Lithium, KaczooH, Kiper, Kornholijo).

[20/04/2012 23:37:41] PokemonDistro made by mastercraft/brun123.

[20/04/2012 23:37:41] >> Loading config (config.lua)

[20/04/2012 23:37:41] > Using plaintext encryption

[20/04/2012 23:37:41] >> Checking software version... outdated, please consider updating!

[20/04/2012 23:37:42] > Current version information - version: 1.0, patch: 1, build: 3429, timestamp: 1261647210.

[20/04/2012 23:37:42] > Latest version information - version: 0.3.6, patch: 0, build: 3293, timestamp: 1260652199.

[20/04/2012 23:37:42] >> Fetching blacklist

[20/04/2012 23:37:42] >> Loading RSA key

[20/04/2012 23:37:42] >> Starting SQL connection

[20/04/2012 23:37:42] >> Running Database Manager

[20/04/2012 23:37:42] > Optimized database.

[20/04/2012 23:37:42] >> Loading items

[20/04/2012 23:37:42] >> Loading groups

[20/04/2012 23:37:42] >> Loading vocations

[20/04/2012 23:37:42] >> Loading script systems

[20/04/2012 23:37:42] [Error - LuaScriptInterface::loadFile] data/lib/catch system.lua:125: '=' expected near 'myChances'

[20/04/2012 23:37:42] [Warning - LuaScriptInterface::initState] Cannot load data/lib/

[20/04/2012 23:37:42] [Error - LuaScriptInterface::loadFile] data/lib/catch system.lua:125: '=' expected near 'myChances'

[20/04/2012 23:37:42] [Warning - LuaScriptInterface::initState] Cannot load data/lib/

[20/04/2012 23:37:42] [Error - LuaScriptInterface::loadFile] data/lib/catch system.lua:125: '=' expected near 'myChances'

[20/04/2012 23:37:42] [Warning - LuaScriptInterface::initState] Cannot load data/lib/

[20/04/2012 23:37:42] [Error - Action Interface]

[20/04/2012 23:37:42] data/actions/scripts/boost.lua

[20/04/2012 23:37:43] Description:

[20/04/2012 23:37:43] data/actions/scripts/boost.lua:192: table index is nil

[20/04/2012 23:37:43] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/boost.lua)

[20/04/2012 23:37:43] data/lib/catch system.lua:125: '=' expected near 'myChances'

[20/04/2012 23:37:43] [Error - Action Interface]

[20/04/2012 23:37:43] data/actions/scripts/evolution.lua

[20/04/2012 23:37:43] Description:

[20/04/2012 23:37:43] data/actions/scripts/evolution.lua:4: table index is nil

[20/04/2012 23:37:43] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/evolution.lua)

[20/04/2012 23:37:43] data/lib/catch system.lua:125: '=' expected near 'myChances'

[20/04/2012 23:37:43] [Error - LuaScriptInterface::loadFile] data/lib/catch system.lua:125: '=' expected near 'myChances'

[20/04/2012 23:37:43] [Warning - LuaScriptInterface::initState] Cannot load data/lib/

[20/04/2012 23:37:43] [Error - LuaScriptInterface::loadFile] data/lib/catch system.lua:125: '=' expected near 'myChances'

[20/04/2012 23:37:43] [Warning - LuaScriptInterface::initState] Cannot load data/lib/

[20/04/2012 23:37:43] [Error - LuaScriptInterface::loadFile] data/lib/catch system.lua:125: '=' expected near 'myChances'

[20/04/2012 23:37:43] [Warning - LuaScriptInterface::initState] Cannot load data/lib/

[20/04/2012 23:37:43] [Error - LuaScriptInterface::loadFile] data/lib/catch system.lua:125: '=' expected near 'myChances'

[20/04/2012 23:37:43] [Warning - LuaScriptInterface::initState] Cannot load data/lib/

[20/04/2012 23:37:43] >> Loading chat channels

[20/04/2012 23:37:43] >> Loading outfits

[20/04/2012 23:37:43] >> Loading experience stages

[20/04/2012 23:37:43] >> Loading monsters

[20/04/2012 23:37:43] >> Loading mods...

[20/04/2012 23:37:43] > Loading buypremium_command.xml... done, but disabled.

[20/04/2012 23:37:43] > Loading changender_command.xml... done, but disabled.

[20/04/2012 23:37:43] > Loading custommonsters.xml... done, but disabled.

[20/04/2012 23:37:43] > Loading customspells.xml... done, but disabled.

[20/04/2012 23:37:43] > Loading firstitems.xml... done.

[20/04/2012 23:37:43] > Loading highscorebook.xml... done.

[20/04/2012 23:37:43] > 6 mods were loaded (4 disabled).

[20/04/2012 23:37:43] >> Loading map and spawns...

[20/04/2012 23:37:43] > Map size: 2048x2048.

[20/04/2012 23:37:43] > Map descriptions:

[20/04/2012 23:37:43] "Saved with Remere's Map Editor 2.1"

[20/04/2012 23:37:43] "No map description available."

[20/04/2012 23:37:45] > Map loading time: 1.278 seconds.

[20/04/2012 23:37:45] [Error - LuaScriptInterface::loadFile] data/lib/catch system.lua:125: '=' expected near 'myChances'

[20/04/2012 23:37:45] [Warning - LuaScriptInterface::initState] Cannot load data/lib/

[20/04/2012 23:37:45] [Warning - Npc::loadFromXml] Cannot load npc file (data/npc/yago.xml).

[20/04/2012 23:37:45] Info: failed to load external entity "data/npc/yago.xml"

[20/04/2012 23:37:45] > Data parsing time: 0.123 seconds.

[20/04/2012 23:37:45] > Houses synchronization time: 0.004 seconds.

[20/04/2012 23:37:45] > Content unserialization time: 0.001 seconds.

[20/04/2012 23:37:45] >> Checking world type... PvP

[20/04/2012 23:37:45] >> Initializing game state modules and registering services...

[20/04/2012 23:37:45] [Error - GlobalEvent Interface]

[20/04/2012 23:37:45] data/globalevents/scripts/start.lua:onStartup

[20/04/2012 23:37:45] Description:

[20/04/2012 23:37:45] attempt to index a nil value

[20/04/2012 23:37:45] stack traceback:

[20/04/2012 23:37:45] [C]: in function 'doAreaCombatHealth'

[20/04/2012 23:37:45] data/globalevents/scripts/start.lua:6: in function <data/globalevents/scripts/start.lua:1>

[20/04/2012 23:37:45] > Global address: 127.0.0.1

[20/04/2012 23:37:45] > Local ports: 7171 7172

[20/04/2012 23:37:45] >> All modules were loaded, server is starting up...

[20/04/2012 23:37:45] >> Pokemon Dash server Online!

quando tento capturar um pokemon, a pokebola vai nele e nao acontece nada. mas da esse erro aqui:

[21/04/2012 00:05:03] [Error - Action Interface]

[21/04/2012 00:05:03] data/actions/scripts/catch.lua:onUse

[21/04/2012 00:05:03] Description:

[21/04/2012 00:05:03] data/actions/scripts/catch.lua:10: attempt to call global 'getTopCorpse' (a nil value)

[21/04/2012 00:05:03] stack traceback:

[21/04/2012 00:05:03] data/actions/scripts/catch.lua:10: in function <data/actions/scripts/catch.lua:8>

Link para o post

Eu já tenho esse ot,mais quero saber uma coisa.Tem um server que éo mesmo mapa do novo dash

que os poke tem level e boost,mais com POKEMONS DE V2 e V3!

Quem poder passar link desse ot serv do +rep :wow:

Add msn : [email protected]

Editado por Dowblefex
Errei uma paradinha (veja o histórico de edições)
Link para o post
  • 2 weeks later...

@GuuhTorres

Como faz para aumentar a exp do poke??

Vai na pasta data/lib e abre o arquivo configuration.lua e acha essa linha "baseExpRate = 100", o 100 é a xp que eu coloquei no meu server deve ta 1 no original, voce muda como quiser ai.

Link para o post
  • 2 weeks later...
  • 4 weeks later...

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo