Ir para conteúdo

8.0 Tools & Servers


walckerstriker

Posts Recomendados

Ou então oque deve estar acontecendo é que você esta pondo tibia 7.92 para ip changer funfar em 8.00

vc tem que ajudar serto

-> tibia 8.00 ajuste para 8.00

-> 7.92 - ip changer 7.92

 

todos em seus respectivos lugares !

 

//LoRd

Link para o comentário
Compartilhar em outros sites

  • Respostas 226
  • Created
  • Última resposta

Top Posters In This Topic

kara eu fis 3 npc e nenhum funfo -.- eu uso o devland 0.89 8.0

 

script do npc de equips -

 

focus = 0

talk_start = 0

target = 0

following = false

attacking = false

 

function onThingMove(creature, thing, oldpos, oldstackpos)

 

end

 

 

function onCreatureAppear(creature)

 

end

 

 

function onCreatureDisappear(cid, pos)

if focus == cid then

selfSay('bye')

focus = 0

talk_start = 0

end

end

 

 

function onCreatureTurn(creature)

 

end

 

function msgcontains(txt, str)

return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))

end

 

function onCreatureSay(cid, type, msg)

msg = string.lower(msg)

 

if ((string.find(msg, '(%a*)hi(%a*)')) and (focus == 0)) and getDistanceToCreature(cid) < 3 then

selfSay('Hello' .. creatureGetName(cid) .. '! 'I Sell Equipments. What i can do for you ?')

focus = cid

talk_start = os.clock()

end

 

if string.find(msg, '(%a*)hi(%a*)') and (focus ~= cid) and getDistanceToCreature(cid) < 3 then

selfSay('Srry, im busy in this moment.')

end

if msgcontains(msg, 'sell steel helmet') and focus == cid then

item = 2457

count = 1

price = 295

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell steel helmet for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell chain helmet') and focus == cid then

item = 2458

count = 1

price = 20

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell chain helmet for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell brass helmet') and focus == cid then

item = 2460

count = 1

price = 30

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell brass helmet for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell viking helmet') and focus == cid then

item = 2473

count = 1

price = 66

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell viking helmet for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell dark helmet') and focus == cid then

item = 2490

count = 1

price = 70

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell dark helmet for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell devil helmet') and focus == cid then

item = 2462

count = 1

price = 450

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell devil helmet for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell warrior helmet') and focus == cid then

item = 2475

count = 1

price = 696

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell warrior helmet for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell krimhorn helmet') and focus == cid then

item = 7461

count = 1

price = 715

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell krimhorn helmet for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell chain armor') and focus == cid then

item = 2464

count = 1

price = 70

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell chain armor for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell brass armor') and focus == cid then

item = 2465

count = 1

price = 150

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell brass armor for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell plate armor') and focus == cid then

item = 2465

count = 1

price = 400

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell plate armor for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell scale armor') and focus == cid then

item = 2465

count = 1

price = 75

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell scale armor for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell knight armor') and focus == cid then

item = 2465

count = 1

price = 875

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell knight armor for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell chain legs') and focus == cid then

item = 2648

count = 1

price = 25

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell chain legs for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell brass legs') and focus == cid then

item = 2478

count = 1

price = 50

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell brass legs for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell plate legs') and focus == cid then

item = 2647

count = 1

price = 275

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell plate legs for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell brass shield') and focus == cid then

item = 2511

count = 1

price = 16

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell brass shield for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell plate shield') and focus == cid then

item = 2510

count = 1

price = 55

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell plate shield for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell steel shield') and focus == cid then

item = 2509

count = 1

price = 80

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell steel shield for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell battle shield') and focus == cid then

item = 2513

count = 1

price = 95

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell battle shield for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell salamander shield') and focus == cid then

item = 3975

count = 1

price = 280

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell salamander shield for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell dwarven shield') and focus == cid then

item = 2525

count = 1

price = 100

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell dwarven shield for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if string.find(msg, '(%a*)yes(%a*)') and cid == focus and talkcount == 1 then

if shop == 1 then

buy(cid,item,count,price)

talk_start = os.clock()

end

if shop == 2 then

sell(cid,item,count,price)

talk_start = os.clock()

end

 

if string.find(msg, '(%a*)bye(%a*)') and focus == cid and getDistanceToCreature(cid) < 3 then

selfSay('Good bye then..')')

focus = 0

talk_start = 0

end

end

 

 

function onCreatureChangeOutfit(creature)

 

end

 

 

function onThink()

if (os.clock() - talk_start) > 30 then

if focus > 0 then

selfSay('You Rude @##**@!')

end

focus = 0

end

end

 

 

script do npc de armas -

 

focus = 0

talk_start = 0

target = 0

following = false

attacking = false

 

function onThingMove(creature, thing, oldpos, oldstackpos)

 

end

 

 

function onCreatureAppear(creature)

 

end

 

 

function onCreatureDisappear(cid, pos)

if focus == cid then

selfSay('bye')

focus = 0

talk_start = 0

end

end

 

 

function onCreatureTurn(creature)

 

end

 

function msgcontains(txt, str)

return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))

end

 

function onCreatureSay(cid, type, msg)

msg = string.lower(msg)

 

if ((string.find(msg, '(%a*)hi(%a*)')) and (focus == 0)) and getDistanceToCreature(cid) < 3 then

selfSay('Hello' .. creatureGetName(cid) .. '! 'I Sell Weapons. What i can do for you ?')

focus = cid

talk_start = os.clock()

end

 

if string.find(msg, '(%a*)hi(%a*)') and (focus ~= cid) and getDistanceToCreature(cid) < 3 then

selfSay('Srry, im busy in this moment.')

end

if msgcontains(msg, 'sell mace') and focus == cid then

item = 2398

count = 1

price = 23

talkcount = 1

shop = 1

selfSay('Do you want to buy a Sell mace for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell sword') and focus == cid then

item = 2376

count = 1

price = 15

talkcount = 1

shop = 1

selfSay('Do you want to buy a Sell sword for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell double axe') and focus == cid then

item = 2387

count = 1

price = 260

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell double axe for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell halberd') and focus == cid then

item = 2381

count = 1

price = 400

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell halberd for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell two-handed sword') and focus == cid then

item = 2377

count = 1

price = 450

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell two-handed sword for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell battle axe') and focus == cid then

item = 2378

count = 1

price = 75

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell battle axe for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell long sword') and focus == cid then

item = 2397

count = 1

price = 50

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell long sword for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell spike sword') and focus == cid then

item = 2383

count = 1

price = 225

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell spike sword for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell crimsom sword') and focus == cid then

item = 7385

count = 1

price = 610

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell crimsom sword for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell fire sword') and focus == cid then

item = 2392

count = 1

price = 1000

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell fire sword for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell battle hammer') and focus == cid then

item = 2417

count = 1

price = 120

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell battle hammer for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell morning star') and focus == cid then

item = 2394

count = 1

price = 100

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell morning star for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell clerical mace') and focus == cid then

item = 2423

count = 1

price = 170

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell clerical mace for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell war hammer') and focus == cid then

item = 2391

count = 1

price = 470

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell war hammer for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'sell barbarian axe') and focus == cid then

item = 2429

count = 1

price = 185

talkcount = 1

shop = 1

selfSay('Do you want to buy a sell barbarian axe for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if string.find(msg, '(%a*)yes(%a*)') and cid == focus and talkcount == 1 then

if shop == 1 then

buy(cid,item,count,price)

talk_start = os.clock()

end

if shop == 2 then

sell(cid,item,count,price)

talk_start = os.clock()

end

 

if string.find(msg, '(%a*)bye(%a*)') and focus == cid and getDistanceToCreature(cid) < 3 then

selfSay('Good bye then..')')

focus = 0

talk_start = 0

end

end

 

 

function onCreatureChangeOutfit(creature)

 

end

 

 

function onThink()

if (os.clock() - talk_start) > 30 then

if focus > 0 then

selfSay('You Rude @##**@!')

end

focus = 0

end

end

 

script do npc de runes -

 

focus = 0

talk_start = 0

target = 0

following = false

attacking = false

 

function onThingMove(creature, thing, oldpos, oldstackpos)

 

end

 

 

function onCreatureAppear(creature)

 

end

 

 

function onCreatureDisappear(cid, pos)

if focus == cid then

selfSay('See ya.')

focus = 0

talk_start = 0

end

end

 

 

function onCreatureTurn(creature)

 

end

 

function msgcontains(txt, str)

return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))

end

 

function onCreatureSay(cid, type, msg)

msg = string.lower(msg)

 

if ((string.find(msg, '(%a*)hi(%a*)')) and (focus == 0)) and getDistanceToCreature(cid) < 3 then

selfSay('Hello' .. creatureGetName(cid) .. '! 'I Sell Runes')

focus = cid

talk_start = os.clock()

end

 

if string.find(msg, '(%a*)hi(%a*)') and (focus ~= cid) and getDistanceToCreature(cid) < 3 then

selfSay('Sorry, I'm busy at this moment.')

end

if msgcontains(msg, 'buy sudden death rune') and focus == cid then

item = 2268

count = 3

price = 325

talkcount = 1

shop = 2

selfSay('Do you want to buy a buy sudden death rune for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'buy ultimate healing rune') and focus == cid then

item = 2273

count = 3

price = 175

talkcount = 1

shop = 2

selfSay('Do you want to buy a buy ultimate healing rune for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'buy heavy magic missile rune') and focus == cid then

item = 2311

count = 10

price = 125

talkcount = 1

shop = 2

selfSay('Do you want to buy a buy heavy magic missile rune for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'buy explosion rune') and focus == cid then

item = 2313

count = 6

price = 250

talkcount = 1

shop = 2

selfSay('Do you want to buy a buy explosion rune for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'buy great fireball rune') and focus == cid then

item = 2304

count = 5

price = 180

talkcount = 1

shop = 2

selfSay('Do you want to buy a buy great fire ball rune for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'buy fireball rune') and focus == cid then

item = 2302

count = 6

price = 95

talkcount = 1

shop = 2

selfSay('Do you want to buy a buy fireball rune for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'buy itense healing rune') and focus == cid then

item = 2265

count = 3

price = 95

talkcount = 1

shop = 2

selfSay('Do you want to buy a buy itense healing rune for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'buy fire field rune') and focus == cid then

item = 2301

count = 5

price = 85

talkcount = 1

shop = 2

selfSay('Do you want to buy a buy fire field rune for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'buy poison field rune') and focus == cid then

item = 2285

count = 5

price = 65

talkcount = 1

shop = 2

selfSay('Do you want to buy a buy poison field rune for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'buy energy field rune') and focus == cid then

item = 2277

count = 5

price = 115

talkcount = 1

shop = 2

selfSay('Do you want to buy a buy energy field rune for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'buy destroy field rune') and focus == cid then

item = 2261

count = 5

price = 45

talkcount = 1

shop = 2

selfSay('Do you want to buy a buy destroy field rune for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'buy fire wall rune') and focus == cid then

item = 2303

count = 4

price = 245

talkcount = 1

shop = 2

selfSay('Do you want to buy a buy fire wall rune for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'buy energy wall rune') and focus == cid then

item = 2279

count = 4

price = 340

talkcount = 1

shop = 2

selfSay('Do you want to buy a buy energy wall rune for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'buy poison wall rune') and focus == cid then

item = 2289

count = 4

price = 210

talkcount = 1

shop = 2

selfSay('Do you want to buy a buy poison wall rune for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'buy firebomb rune') and focus == cid then

item = 2305

count = 6

price = 235

talkcount = 1

shop = 2

selfSay('Do you want to buy a buy firebomb rune for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'buy antidote rune') and focus == cid then

item = 2266

count = 3

price = 65

talkcount = 1

shop = 2

selfSay('Do you want to buy a buy antidote rune for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'buy convince creature rune') and focus == cid then

item = 2290

count = 4

price = 80

talkcount = 1

shop = 2

selfSay('Do you want to buy a buy convince creature rune for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if msgcontains(msg, 'buy chameleon rune') and focus == cid then

item = 2291

count = 3

price = 210

talkcount = 1

shop = 2

selfSay('Do you want to buy a buy chameleon rune for ' .. price .. ' Gold Coins?

talk_start = os.clock()

return

end

 

if string.find(msg, '(%a*)yes(%a*)') and cid == focus and talkcount == 1 then

if shop == 1 then

buy(cid,item,count,price)

talk_start = os.clock()

end

if shop == 2 then

sell(cid,item,count,price)

talk_start = os.clock()

end

 

if string.find(msg, '(%a*)Bye(%a*)') and focus == cid and getDistanceToCreature(cid) < 3 then

selfSay('Good bye then..')')

focus = 0

talk_start = 0

end

end

 

 

function onCreatureChangeOutfit(creature)

 

end

 

 

function onThink()

if (os.clock() - talk_start) > 30 then

if focus > 0 then

selfSay('You Rude @##@**!.')

end

focus = 0

end

end

 

Nenhum desses deu certo, fis tudu pelo npc maker q eu baxei aki msmo ¬¬

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.

×
×
  • Criar Novo...