Ir para conteúdo
  • Cadastre-se

Posts Recomendados

Erro no Console:

 

[15/09/2021 08:48:37] [Error - Npc interface] 
[15/09/2021 08:48:37] data/npc/scripts/nikki.lua:onCreatureSay
[15/09/2021 08:48:37] Description: 
[15/09/2021 08:48:37] data/npc/scripts/nikki.lua:40: attempt to call global 'creatureGetName' (a nil value)
[15/09/2021 08:48:37] stack traceback:
[15/09/2021 08:48:37] 	data/npc/scripts/nikki.lua:40: in function <data/npc/scripts/nikki.lua:36>

 

Npc: Script/nikki.lua

 

Spoiler

local focus = 0
local talk_start = 0
local target = 0
local following = false
local attacking = false

function onThingMove(creature, thing, oldpos, oldstackpos)

end


function onCreatureAppear(creature)

end


function onCreatureDisappear(cid, pos)
if focus == cid then
selfSay('Até mais.')
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 (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then
selfSay('Ola ' .. creatureGetName(cid) .. ' tudo bem? Eu compro todos itens para ataque, para defesa, amuletos e aneis basta me dizer o nome do item.')
focus = cid
talk_start = os.clock()

elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
selfSay('Espere um pouco ' .. creatureGetName(cid) .. ' ja falo com você.')

elseif focus == cid then
talk_start = os.clock()

if msgcontains(msg, 'demon helmet') then
sell(cid,2493,getCount(msg),80000)
elseif msgcontains(msg, 'royal helmet') or msgcontains(msg, 'rh') then
sell(cid,2498,getCount(msg),40000)
elseif msgcontains(msg, 'warrior helmet') then
sell(cid,2475,getCount(msg),6000)
elseif msgcontains(msg, 'crusader helmet') then
sell(cid,2497,getCount(msg),9000)
elseif msgcontains(msg, 'crown helmet') then
sell(cid,2491,getCount(msg),5000)
elseif msgcontains(msg, 'devil helmet') then
sell(cid,2462,getCount(msg),4000)
elseif msgcontains(msg, 'mystic turban') then
sell(cid,2663,getCount(msg),500)
elseif msgcontains(msg, 'chain helmet') then
sell(cid,2458,getCount(msg),35)
elseif msgcontains(msg, 'iron helmet') then
sell(cid,2459,getCount(msg),80)
elseif msgcontains(msg, 'helmet of the ancients') then
sell(cid,2342,getCount(msg),200000)
elseif msgcontains(msg, 'golden helmet') then
sell(cid,2471,getCount(msg),500000)
elseif msgcontains(msg, 'winged helmet') then
sell(cid,2474,getCount(msg),350000)
elseif msgcontains(msg, 'horned helmet') then
sell(cid,2496,getCount(msg),400000)
elseif msgcontains(msg, 'dragon scale helmet') then
sell(cid,2506,getCount(msg),450000)
elseif msgcontains(msg, 'beholder helmet') then
sell(cid,3972,getCount(msg),100000)
elseif msgcontains(msg, 'krimhorn helmet') then
sell(cid,7461,getCount(msg),10000)
elseif msgcontains(msg, 'ragnir helmet') then
sell(cid,7462,getCount(msg),10000)
elseif msgcontains(msg, 'pirate hat') then
sell(cid,6096,getCount(msg),5000)
elseif msgcontains(msg, 'santa hat') then
sell(cid,6531,getCount(msg),5000)
elseif msgcontains(msg, 'helmet of the deep') then
sell(cid,5461,getCount(msg),3000)
elseif msgcontains(msg, 'charmer tiara') then
sell(cid,3971,getCount(msg),30000)
elseif msgcontains(msg, 'feather headdress') then
sell(cid,3970,getCount(msg),1000)
elseif msgcontains(msg, 'horseman helmet') then
sell(cid,3969,getCount(msg),1000)
elseif msgcontains(msg, 'tribal mask') then
sell(cid,3967,getCount(msg),100)
elseif msgcontains(msg, 'post officers hat') then
sell(cid,2665,getCount(msg),30000)
elseif msgcontains(msg, 'magican hat') then
sell(cid,2662,getCount(msg),3000)
elseif msgcontains(msg, 'dwarven helmet') then
sell(cid,2502,getCount(msg),30000)
elseif msgcontains(msg, 'ceremonial mask') then
sell(cid,2501,getCount(msg),80000)
elseif msgcontains(msg, 'amazon helmet') then
sell(cid,2499,getCount(msg),70000)
elseif msgcontains(msg, 'dark helmet') then
sell(cid,2490,getCount(msg),100)
elseif msgcontains(msg, 'solider helmet') then
sell(cid,2481,getCount(msg),50)
elseif msgcontains(msg, 'studded helmet') then
sell(cid,2482,getCount(msg),10)
elseif msgcontains(msg, 'legion helmet') then
sell(cid,2479,getCount(msg),20)
elseif msgcontains(msg, 'strange helmet') then
sell(cid,2480,getCount(msg),100)
elseif msgcontains(msg, 'viking helmet') then
sell(cid,2480,getCount(msg),40)
elseif msgcontains(msg, 'brass helmet') then
sell(cid,2460,getCount(msg),25)
elseif msgcontains(msg, 'leather helmet') then
sell(cid,2461,getCount(msg),5)
elseif msgcontains(msg, 'stell helmet') then
sell(cid,2457,getCount(msg),100)
elseif msgcontains(msg, 'damaged stell helmet') then
sell(cid,5924,getCount(msg),100)
elseif msgcontains(msg, 'glacier mask') then
sell(cid,7902,getCount(msg),15000)
elseif msgcontains(msg, 'lightning headband') then
sell(cid,7901,getCount(msg),15000)
elseif msgcontains(msg, 'terra hood') then
sell(cid,7903,getCount(msg),15000)
elseif msgcontains(msg, 'magma monocle') then
sell(cid,7900,getCount(msg),15000)
elseif msgcontains(msg, 'ancient tiara') then
sell(cid,2139,getCount(msg),10000)
elseif msgcontains(msg, 'earmuffs') then
sell(cid,7459,getCount(msg),5000)
elseif msgcontains(msg, 'bandana') then
sell(cid,5917,getCount(msg),5000)
elseif msgcontains(msg, 'mining helmet') then
sell(cid,7497,getCount(msg),8500)
elseif msgcontains(msg, 'fur cap') then
sell(cid,7458,getCount(msg),6500)
elseif msgcontains(msg, 'criador') then
selfSay('NPC Nikki criado por Polar')

elseif msgcontains(msg, 'steel boots') and focus == cid then
sell(cid,2645,getCount(msg),30000)
elseif msgcontains(msg, 'soft boots') and focus == cid then
sell(cid,6132,getCount(msg),400000)
elseif msgcontains(msg, 'traper boots') and focus == cid then
sell(cid,2641,getCount(msg),100000)
elseif msgcontains(msg, 'sandals') and focus == cid then
sell(cid,2642,getCount(msg),100)
elseif msgcontains(msg, 'leather boots') and focus == cid then
sell(cid,2643,getCount(msg),20)
elseif msgcontains(msg, 'bunny slipers') and focus == cid then
sell(cid,2644,getCount(msg),10000)
elseif msgcontains(msg, 'crocodile boots') and focus == cid then
sell(cid,3982,getCount(msg),1000)
elseif msgcontains(msg, 'pirate boots') and focus == cid then
sell(cid,5462,getCount(msg),30000)
elseif msgcontains(msg, 'fur boots') and focus == cid then
sell(cid,7457,getCount(msg),5000)
elseif msgcontains(msg, 'boh') or msgcontains(msg, 'boots of haste') and focus == cid then
sell(cid,2195,getCount(msg),25000)
elseif msgcontains(msg, 'golden boots') and focus == cid then
sell(cid,2646,getCount(msg),200000)
elseif msgcontains(msg, 'terra boots') and focus == cid then
sell(cid,7886,getCount(msg),15000)
elseif msgcontains(msg, 'magma boots') and focus == cid then
sell(cid,7891,getCount(msg),15000)
elseif msgcontains(msg, 'lightning boots') and focus == cid then
sell(cid,7893,getCount(msg),15000)
elseif msgcontains(msg, 'glacier shoes') and focus == cid then
sell(cid,7892,getCount(msg),15000)

elseif msgcontains(msg, 'magic plate armor') or msgcontains(msg, 'mpa') then
sell(cid,2472,getCount(msg),100000)
elseif msgcontains(msg, 'dragon scale mail') or msgcontains(msg, 'dsm') then
sell(cid,2492,getCount(msg),60000)
elseif msgcontains(msg, 'demon armor') then
sell(cid,2494,getCount(msg),90000)
elseif msgcontains(msg, 'golden armor') then
sell(cid,2466,getCount(msg),30000)
elseif msgcontains(msg, 'crown armor') then
sell(cid,2487,getCount(msg),20000)
elseif msgcontains(msg, 'knight armor') then
sell(cid,2476,getCount(msg),5000)
elseif msgcontains(msg, 'blue robe') then
sell(cid,2656,getCount(msg),15000)
elseif msgcontains(msg, 'amazon armor') then
sell(cid,2500,getCount(msg),7500)
elseif msgcontains(msg, 'plate armor') then
sell(cid,2463,getCount(msg),400)
elseif msgcontains(msg, 'brass armor') then
sell(cid,2465,getCount(msg),200)
elseif msgcontains(msg, 'chain armor') then
sell(cid,2464,getCount(msg),100)
elseif msgcontains(msg, 'leather armor') then
sell(cid,2467,getCount(msg),20)
elseif msgcontains(msg, 'scale armor') then
sell(cid,2483,getCount(msg),100)
elseif msgcontains(msg, 'studded armor') then
sell(cid,2484,getCount(msg),15)
elseif msgcontains(msg, 'doublet') then
sell(cid,2485,getCount(msg),5)
elseif msgcontains(msg, 'noble armor') then
sell(cid,2486,getCount(msg),1500)
elseif msgcontains(msg, 'dark armor') then
sell(cid,2489,getCount(msg),1000)
elseif msgcontains(msg, 'dwarven armor') then
sell(cid,2503,getCount(msg),80000)
elseif msgcontains(msg, 'elven armor') then
sell(cid,2505,getCount(msg),75000)
elseif msgcontains(msg, 'jacket') then
sell(cid,2650,getCount(msg),1)
elseif msgcontains(msg, 'coat') then
sell(cid,2651,getCount(msg),1)
elseif msgcontains(msg, 'green tunic') then
sell(cid,2652,getCount(msg),2)
elseif msgcontains(msg, 'red tunic') then
sell(cid,2653,getCount(msg),40000)
elseif msgcontains(msg, 'cape') then
sell(cid,2654,getCount(msg),1)
elseif msgcontains(msg, 'red robe') then
sell(cid,2655,getCount(msg),4000)
elseif msgcontains(msg, 'simple dress') then
sell(cid,2657,getCount(msg),4000)
elseif msgcontains(msg, 'white dress') then
sell(cid,2658,getCount(msg),40000)
elseif msgcontains(msg, 'ball gown') then
sell(cid,2659,getCount(msg),45000)
elseif msgcontains(msg, 'hidden turbant') then
sell(cid,2660,getCount(msg),55000)
elseif msgcontains(msg, 'cowl') then
sell(cid,2664,getCount(msg),65000)
elseif msgcontains(msg, 'leopard armor') then
sell(cid,3968,getCount(msg),600)
elseif msgcontains(msg, 'pirate shirt') then
sell(cid,6095,getCount(msg),800)
elseif msgcontains(msg, 'terra coat') then
sell(cid,7884,getCount(msg),25000)
elseif msgcontains(msg, 'magma coat') then
sell(cid,7899,getCount(msg),25000)
elseif msgcontains(msg, 'glacier coat') then
sell(cid,7897,getCount(msg),25000)
elseif msgcontains(msg, 'lightning robe') then
sell(cid,7898,getCount(msg),25000)
elseif msgcontains(msg, 'mammoth fur cape') then
sell(cid,7463,getCount(msg),5000)

elseif msgcontains(msg, 'golden legs') then
sell(cid,2470,getCount(msg),55000)
elseif msgcontains(msg, 'studded legs') then
sell(cid,2468,getCount(msg),50)
elseif msgcontains(msg, 'dragon scale legs') then
sell(cid,2469,getCount(msg),500000)
elseif msgcontains(msg, 'brass legs') then
sell(cid,2478,getCount(msg),125)
elseif msgcontains(msg, 'crown legs') then
sell(cid,2488,getCount(msg),15000)
elseif msgcontains(msg, 'knight legs') then
sell(cid,2477,getCount(msg),6000)
elseif msgcontains(msg, 'plate legs') then
sell(cid,2647,getCount(msg),500)
elseif msgcontains(msg, 'brass legs') then
sell(cid,2478,getCount(msg),100)
elseif msgcontains(msg, 'chain legs') then
sell(cid,2478,getCount(msg),50)
elseif msgcontains(msg, 'demon legs') then
sell(cid,2495,getCount(msg),300000)
elseif msgcontains(msg, 'dwarven legs') then
sell(cid,2504,getCount(msg),150000)
elseif msgcontains(msg, 'elven legs') then
sell(cid,2507,getCount(msg),250000)
elseif msgcontains(msg, 'leather legs') then
sell(cid,2649,getCount(msg),5)
elseif msgcontains(msg, 'terra legs') then
sell(cid,7885,getCount(msg),35000)
elseif msgcontains(msg, 'magma legs') then
sell(cid,7894,getCount(msg),35000)
elseif msgcontains(msg, 'lightning legs') then
sell(cid,7895,getCount(msg),35000)
elseif msgcontains(msg, 'glacier kilts') then
sell(cid,7895,getCount(msg),35000)
elseif msgcontains(msg, 'bast skirt') then
sell(cid,3983,getCount(msg),500)
elseif msgcontains(msg, 'mammoth fur shorts') then
sell(cid,7464,getCount(msg),1500)
elseif msgcontains(msg, 'pirate knee breeches') then
sell(cid,5918,getCount(msg),1000)
elseif msgcontains(msg, 'blue legs') then
sell(cid,7730,getCount(msg),55000)

elseif msgcontains(msg, 'shield of the mastermind') or msgcontains(msg, 'mms') then
sell(cid,2514,getCount(msg),80000)
elseif msgcontains(msg, 'demon shield') then
sell(cid,2520,getCount(msg),40000)
elseif msgcontains(msg, 'blessed shield') then
sell(cid,2523,getCount(msg),150000)
elseif msgcontains(msg, 'great shield') then
sell(cid,2522,getCount(msg),100000)
elseif msgcontains(msg, 'vampire shield') then
sell(cid,2534,getCount(msg),25000)
elseif msgcontains(msg, 'medusa shield') then
sell(cid,2536,getCount(msg),8000)
elseif msgcontains(msg, 'amazon shield') then
sell(cid,2537,getCount(msg),4000)
elseif msgcontains(msg, 'crown shield') then
sell(cid,2519,getCount(msg),5000)
elseif msgcontains(msg, 'tower shield') then
sell(cid,2528,getCount(msg),4000)
elseif msgcontains(msg, 'dragon shield') then
sell(cid,2516,getCount(msg),3000)
elseif msgcontains(msg, 'guardian shield') then
sell(cid,2515,getCount(msg),2000)
elseif msgcontains(msg, 'beholder shield') then
sell(cid,2518,getCount(msg),1500)
elseif msgcontains(msg, 'dwarven shield') then
sell(cid,2525,getCount(msg),100)
elseif msgcontains(msg, 'steel shield') then
sell(cid,2509,getCount(msg),80)
elseif msgcontains(msg, 'plate shield') then
sell(cid,2510,getCount(msg),60)
elseif msgcontains(msg, 'brass shield') then
sell(cid,2511,getCount(msg),25)
elseif msgcontains(msg, 'wooden shield') then
sell(cid,2512,getCount(msg),5)
elseif msgcontains(msg, 'battle shield') then
sell(cid,2513,getCount(msg),50)
elseif msgcontains(msg, 'guardian shield') then
sell(cid,2515,getCount(msg),1500)
elseif msgcontains(msg, 'guardian shield') then
sell(cid,2515,getCount(msg),1500)
elseif msgcontains(msg, 'shield of honour') then
sell(cid,2517,getCount(msg),15000)
elseif msgcontains(msg, 'dark shield') then
sell(cid,2521,getCount(msg),100)
elseif msgcontains(msg, 'ornamented shield') then
sell(cid,2524,getCount(msg),1500)
elseif msgcontains(msg, 'studded shield') then
sell(cid,2526,getCount(msg),15)
elseif msgcontains(msg, 'rose shield') then
sell(cid,2527,getCount(msg),95000)
elseif msgcontains(msg, 'black shield') then
sell(cid,2529,getCount(msg),120)
elseif msgcontains(msg, 'copper shield') then
sell(cid,2530,getCount(msg),60)
elseif msgcontains(msg, 'viking shield') then
sell(cid,2531,getCount(msg),1100)
elseif msgcontains(msg, 'griffin shield') then
sell(cid,2533,getCount(msg),1800)
elseif msgcontains(msg, 'ancient shield') then
sell(cid,2532,getCount(msg),1200)
elseif msgcontains(msg, 'ancient shield') then
sell(cid,2535,getCount(msg),1300)
elseif msgcontains(msg, 'eagle shield') then
sell(cid,2538,getCount(msg),83000)
elseif msgcontains(msg, 'phoenix shield') then
sell(cid,2539,getCount(msg),76000)
elseif msgcontains(msg, 'scarab shield') then
sell(cid,2540,getCount(msg),2200)
elseif msgcontains(msg, 'bone shield') then
sell(cid,2541,getCount(msg),600)
elseif msgcontains(msg, 'tempest shield') then
sell(cid,2542,getCount(msg),100000)
elseif msgcontains(msg, 'tusk shield') then
sell(cid,3973,getCount(msg),100)
elseif msgcontains(msg, 'sentinel shield') then
sell(cid,3974,getCount(msg),2100)
elseif msgcontains(msg, 'salamander shield') then
sell(cid,3975,getCount(msg),2200)
elseif msgcontains(msg, 'tortoise shield') then
sell(cid,6131,getCount(msg),1400)
elseif msgcontains(msg, 'nightmare shield') then
sell(cid,6391,getCount(msg),99000)
elseif msgcontains(msg, 'necromancer shield') then
sell(cid,6433,getCount(msg),99000)
elseif msgcontains(msg, 'norse shield') then
sell(cid,7460,getCount(msg),2600)

elseif msgcontains(msg, 'magic longsword') then
sell(cid,2390,getCount(msg),150000)
elseif msgcontains(msg, 'warlord sword') then
sell(cid,2408,getCount(msg),100000)
elseif msgcontains(msg, 'magic sword') then
sell(cid,2400,getCount(msg),90000)
elseif msgcontains(msg, 'giant sword') then
sell(cid,2393,getCount(msg),10000)
elseif msgcontains(msg, 'bright sword') then
sell(cid,2407,getCount(msg),6000)
elseif msgcontains(msg, 'ice rapier') then
sell(cid,2396,getCount(msg),4000)
elseif msgcontains(msg, 'fire sword') then
sell(cid,2392,getCount(msg),3000)
elseif msgcontains(msg, 'serpent sword') then
sell(cid,2409,getCount(msg),1500)
elseif msgcontains(msg, 'spike sword') then
sell(cid,2383,getCount(msg),800)
elseif msgcontains(msg, 'two handed sword') then
sell(cid,2377,getCount(msg),400)
elseif msgcontains(msg, 'broad sword') then
sell(cid,2413,getCount(msg),70)
elseif msgcontains(msg, 'short sword') then
sell(cid,2406,getCount(msg),30)
elseif msgcontains(msg, 'sabre') then
sell(cid,2385,getCount(msg),25)
elseif msgcontains(msg, 'sword') then
sell(cid,2376,getCount(msg),25)
elseif msgcontains(msg, 'two handed sword') then
sell(cid,2377,getCount(msg),325)
elseif msgcontains(msg, 'dagger') then
sell(cid,2379,getCount(msg),5)
elseif msgcontains(msg, 'rapier') then
sell(cid,2384,getCount(msg),8)
elseif msgcontains(msg, 'carlin sword') then
sell(cid,2395,getCount(msg),55)
elseif msgcontains(msg, 'silver dagger') then
sell(cid,2402,getCount(msg),15)
elseif msgcontains(msg, 'knife') then
sell(cid,2403,getCount(msg),1)
elseif msgcontains(msg, 'combat knife') then
sell(cid,2404,getCount(msg),2)
elseif msgcontains(msg, 'short sword') then
sell(cid,2406,getCount(msg),8)
elseif msgcontains(msg, 'poison dagger') then
sell(cid,2411,getCount(msg),28)
elseif msgcontains(msg, 'katana') then
sell(cid,2412,getCount(msg),38)
elseif msgcontains(msg, 'scimitar') then
sell(cid,2419,getCount(msg),88)
elseif msgcontains(msg, 'machete') then
sell(cid,2420,getCount(msg),23)
elseif msgcontains(msg, 'heavy machete') then
sell(cid,2442,getCount(msg),200)
elseif msgcontains(msg, 'epee') then
sell(cid,2438,getCount(msg),2000)
elseif msgcontains(msg, 'pharaoh sword') then
sell(cid,2446,getCount(msg),30000)
elseif msgcontains(msg, 'bone sword') then
sell(cid,2450,getCount(msg),150)
elseif msgcontains(msg, 'djinn blade') then
sell(cid,2451,getCount(msg),40000)
elseif msgcontains(msg, 'avenger') then
sell(cid,6528,getCount(msg),85000)
elseif msgcontains(msg, 'demonrange sword') then
sell(cid,7382,getCount(msg),19000)
elseif msgcontains(msg, 'relic sword') then
sell(cid,7383,getCount(msg),9000)
elseif msgcontains(msg, 'mystic blade') then
sell(cid,7384,getCount(msg),13000)
elseif msgcontains(msg, 'crimson sword') then
sell(cid,7385,getCount(msg),610)
elseif msgcontains(msg, 'mercenary sword') then
sell(cid,7386,getCount(msg),18000)
elseif msgcontains(msg, 'justice seeker') then
sell(cid,7390,getCount(msg),55000)
elseif msgcontains(msg, 'dragon slayer') then
sell(cid,7402,getCount(msg),15000)
elseif msgcontains(msg, 'assassin dagger') then
sell(cid,7404,getCount(msg),5000)
elseif msgcontains(msg, 'blacksteel sword') then
sell(cid,7406,getCount(msg),9500)
elseif msgcontains(msg, 'haunted blade') then
sell(cid,7407,getCount(msg),10000)
elseif msgcontains(msg, 'wyvern fang') then
sell(cid,7408,getCount(msg),1500)
elseif msgcontains(msg, 'bloody edge') then
sell(cid,7416,getCount(msg),10500)
elseif msgcontains(msg, 'crystal sword') then
sell(cid,7419,getCount(msg),600)
elseif msgcontains(msg, 'templar scytheblade') then
sell(cid,3963,getCount(msg),850)

elseif msgcontains(msg, 'dragon lance') then
sell(cid,2414,getCount(msg),10000)
elseif msgcontains(msg, 'stonecutters axe') then
sell(cid,2431,getCount(msg),90000)
elseif msgcontains(msg, 'guardian halberd') then
sell(cid,2427,getCount(msg),7500)
elseif msgcontains(msg, 'fire axe') then
sell(cid,2432,getCount(msg),10000)
elseif msgcontains(msg, 'knight axe') then
sell(cid,2430,getCount(msg),2000)
elseif msgcontains(msg, 'double axe') then
sell(cid,2387,getCount(msg),200)
elseif msgcontains(msg, 'halberd') then
sell(cid,2381,getCount(msg),200)
elseif msgcontains(msg, 'battle axe') then
sell(cid,2378,getCount(msg),100)
elseif msgcontains(msg, 'hatchet') then
sell(cid,2388,getCount(msg),20)
elseif msgcontains(msg, 'hand axe') then
sell(cid,2380,getCount(msg),6)
elseif msgcontains(msg, 'axe') then
sell(cid,2386,getCount(msg),8)
elseif msgcontains(msg, 'great axe') then
sell(cid,2415,getCount(msg),100000)
elseif msgcontains(msg, 'naginata') then
sell(cid,2426,getCount(msg),4000)
elseif msgcontains(msg, 'obsidian lance') then
sell(cid,2425,getCount(msg),150)
elseif msgcontains(msg, 'ocish axe') then
sell(cid,2428,getCount(msg),120)
elseif msgcontains(msg, 'barbarian axe') then
sell(cid,2429,getCount(msg),280)
elseif msgcontains(msg, 'dwarven axe') then
sell(cid,2435,getCount(msg),900)
elseif msgcontains(msg, 'daramanian waraxe') then
sell(cid,2440,getCount(msg),6500)
elseif msgcontains(msg, 'daramanian axe') then
sell(cid,2441,getCount(msg),7000)
elseif msgcontains(msg, 'ravagers axe') then
sell(cid,2443,getCount(msg),8000)
elseif msgcontains(msg, 'twin axe') then
sell(cid,2447,getCount(msg),18000)
elseif msgcontains(msg, 'war axe') then
sell(cid,2454,getCount(msg),9000)
elseif msgcontains(msg, 'beastslayer axe') then
sell(cid,3962,getCount(msg),1500)
elseif msgcontains(msg, 'ruthless axe') then
sell(cid,6553,getCount(msg),38500)
elseif msgcontains(msg, 'headchopper') then
sell(cid,7380,getCount(msg),5500)
elseif msgcontains(msg, 'vile axe') then
sell(cid,7388,getCount(msg),8500)
elseif msgcontains(msg, 'butchers axe') then
sell(cid,7412,getCount(msg),5000)
elseif msgcontains(msg, 'titan axe') then
sell(cid,7413,getCount(msg),6000)
elseif msgcontains(msg, 'noble axe') then
sell(cid,7456,getCount(msg),2000)
elseif msgcontains(msg, 'sickle') then
sell(cid,2405,getCount(msg),1)
elseif msgcontains(msg, 'golden sickle') then
sell(cid,2418,getCount(msg),17)
elseif msgcontains(msg, 'ripper lance') then
sell(cid,3964,getCount(msg),37)
elseif msgcontains(msg, 'dreaded cleaver') then
sell(cid,7419,getCount(msg),5500)
elseif msgcontains(msg, 'heroic axe') then
sell(cid,7751,getCount(msg),8500)
elseif msgcontains(msg, 'royal axe') then
sell(cid,7434,getCount(msg),9500)

elseif msgcontains(msg, 'war hammer') then
sell(cid,2391,getCount(msg),6000)
elseif msgcontains(msg, 'thunder hammer') then
sell(cid,2421,getCount(msg),90000)
elseif msgcontains(msg, 'skull staff') then
sell(cid,2436,getCount(msg),10000)
elseif msgcontains(msg, 'dragon hammer') then
sell(cid,2434,getCount(msg),2000)
elseif msgcontains(msg, 'clerical mace') then
sell(cid,2423,getCount(msg),200)
elseif msgcontains(msg, 'battle hammer') then
sell(cid,2417,getCount(msg),60)
elseif msgcontains(msg, 'mace') then
sell(cid,2398,getCount(msg),30)
elseif msgcontains(msg, 'club') then
sell(cid,2382,getCount(msg),2)
elseif msgcontains(msg, 'morning star') then
sell(cid,2394,getCount(msg),100)
elseif msgcontains(msg, 'staff') then
sell(cid,2401,getCount(msg),10)
elseif msgcontains(msg, 'crowbar') then
sell(cid,2416,getCount(msg),1)
elseif msgcontains(msg, 'battle hammer') then
sell(cid,2417,getCount(msg),120)
elseif msgcontains(msg, 'giant smithhammer') then
sell(cid,2321,getCount(msg),120)
elseif msgcontains(msg, 'iron hammer') then
sell(cid,2422,getCount(msg),140)
elseif msgcontains(msg, 'silver mace') then
sell(cid,2424,getCount(msg),13000)
elseif msgcontains(msg, 'daramanian mace') then
sell(cid,2439,getCount(msg),180)
elseif msgcontains(msg, 'hammer of wrath') then
sell(cid,2444,getCount(msg),10000)
elseif msgcontains(msg, 'crystal mace') then
sell(cid,2445,getCount(msg),9000)
elseif msgcontains(msg, 'studded club') then
sell(cid,2448,getCount(msg),8)
elseif msgcontains(msg, 'bone club') then
sell(cid,2449,getCount(msg),12)
elseif msgcontains(msg, 'heavy mace') then
sell(cid,2452,getCount(msg),19000)
elseif msgcontains(msg, 'arcane staff') then
sell(cid,2453,getCount(msg),85000)
elseif msgcontains(msg, 'banana staff') then
sell(cid,3966,getCount(msg),185)
elseif msgcontains(msg, 'brutetamers staff') then
sell(cid,7379,getCount(msg),1500)
elseif msgcontains(msg, 'mammoth whopper') then
sell(cid,7381,getCount(msg),300)
elseif msgcontains(msg, 'diamond sceptre') then
sell(cid,7387,getCount(msg),3000)
elseif msgcontains(msg, 'orcish maul') then
sell(cid,7392,getCount(msg),7500)
elseif msgcontains(msg, 'sapphire hammer') then
sell(cid,7437,getCount(msg),7000)
elseif msgcontains(msg, 'shadow sceptre') then
sell(cid,7451,getCount(msg),5500)
elseif msgcontains(msg, 'spiked squelcher') then
sell(cid,7452,getCount(msg),5500)
elseif msgcontains(msg, 'taurus mace') then
sell(cid,7425,getCount(msg),500)
elseif msgcontains(msg, 'furry club') then
sell(cid,7432,getCount(msg),1000)
elseif msgcontains(msg, 'dragonbone staff') then
sell(cid,7430,getCount(msg),3000)
elseif msgcontains(msg, 'lunar staff') then
sell(cid,7424,getCount(msg),5000)
elseif msgcontains(msg, 'amber staff') then
sell(cid,7426,getCount(msg),8000)
elseif msgcontains(msg, 'chaos mace') then
sell(cid,7427,getCount(msg),7000)
elseif msgcontains(msg, 'blessed sceptre') then
sell(cid,7429,getCount(msg),5500)
elseif msgcontains(msg, 'cranial basher') then
sell(cid,7415,getCount(msg),10000)
elseif msgcontains(msg, 'abyss hammer') then
sell(cid,7414,getCount(msg),11500)
elseif msgcontains(msg, 'serpent hammer') then
sell(cid,7422,getCount(msg),15500)

elseif msgcontains(msg, 'platinum amulet') then
sell(cid,2171,getCount(msg),5000)
elseif msgcontains(msg, 'crystal necklace') then
sell(cid,2125,getCount(msg),150)
elseif msgcontains(msg, 'bronze necklace') then
sell(cid,2126,getCount(msg),1100)
elseif msgcontains(msg, 'wolf tooth chain') then
sell(cid,2129,getCount(msg),90)
elseif msgcontains(msg, 'golden amulet') then
sell(cid,2130,getCount(msg),8000)
elseif msgcontains(msg, 'star amulet') then
sell(cid,2131,getCount(msg),4000)
elseif msgcontains(msg, 'silver necklace') then
sell(cid,2132,getCount(msg),9000)
elseif msgcontains(msg, 'ruby necklace') then
sell(cid,2133,getCount(msg),7000)
elseif msgcontains(msg, 'scarab amulet') then
sell(cid,2135,getCount(msg),2000)
elseif msgcontains(msg, 'demonbone amulet') then
sell(cid,2136,getCount(msg),14000)
elseif msgcontains(msg, 'silver amulet') then
sell(cid,2170,getCount(msg),100)
elseif msgcontains(msg, 'bronze amulet') then
sell(cid,2172,getCount(msg),100)
elseif msgcontains(msg, 'strange symbol') then
sell(cid,2174,getCount(msg),400)
elseif msgcontains(msg, 'amulet of loss') or msgcontains(msg, 'aol') then
sell(cid,2173,getCount(msg),5000)
elseif msgcontains(msg, 'starlight amulet') then
sell(cid,2138,getCount(msg),10000)
elseif msgcontains(msg, 'ancient amulet') then
sell(cid,2142,getCount(msg),4500)
elseif msgcontains(msg, 'strange talisman') then
sell(cid,2161,getCount(msg),300)
elseif msgcontains(msg, 'broken amulet') then
sell(cid,2196,getCount(msg),10000)
elseif msgcontains(msg, 'stone skin amulet') then
sell(cid,2197,getCount(msg),2000)
elseif msgcontains(msg, 'elven amulet') then
sell(cid,2198,getCount(msg),1500)
elseif msgcontains(msg, 'garlic necklace') then
sell(cid,2199,getCount(msg),500)
elseif msgcontains(msg, 'protection amulet') then
sell(cid,2200,getCount(msg),400)
elseif msgcontains(msg, 'dragon necklace') then
sell(cid,2201,getCount(msg),400)
elseif msgcontains(msg, 'paw amulet') then
sell(cid,2218,getCount(msg),4000)
elseif msgcontains(msg, 'terra amulet') then
sell(cid,7887,getCount(msg),3000)
elseif msgcontains(msg, 'ice amulet') then
sell(cid,7888,getCount(msg),3000)
elseif msgcontains(msg, 'lightning amulet') then
sell(cid,7889,getCount(msg),3000)
elseif msgcontains(msg, 'flame amulet') then
sell(cid,7890,getCount(msg),3000)
elseif msgcontains(msg, 'scarf') then
sell(cid,2661,getCount(msg),1000)

elseif msgcontains(msg, 'might ring') then
sell(cid,2164,getCount(msg),1000)
elseif msgcontains(msg, 'stealth ring') then
sell(cid,2165,getCount(msg),600)
elseif msgcontains(msg, 'power ring') then
sell(cid,2166,getCount(msg),50)
elseif msgcontains(msg, 'energy ring') then
sell(cid,2167,getCount(msg),500)
elseif msgcontains(msg, 'life ring') then
sell(cid,2168,getCount(msg),300)
elseif msgcontains(msg, 'time ring') then
sell(cid,2169,getCount(msg),800)
elseif msgcontains(msg, 'sword ring') then
sell(cid,2207,getCount(msg),120)
elseif msgcontains(msg, 'axe ring') then
sell(cid,2208,getCount(msg),120)
elseif msgcontains(msg, 'club ring') then
sell(cid,2209,getCount(msg),120)
elseif msgcontains(msg, 'dwarven ring') then
sell(cid,2213,getCount(msg),100)
elseif msgcontains(msg, 'ring of realing') then
sell(cid,2214,getCount(msg),120)
elseif msgcontains(msg, 'ring of wishes') then
sell(cid,2357,getCount(msg),900)
elseif msgcontains(msg, 'gold ring') then
sell(cid,2207,getCount(msg),1000)
elseif msgcontains(msg, 'death ring') then
sell(cid,6300,getCount(msg),800)
elseif msgcontains(msg, 'wedding ring') then
sell(cid,2121,getCount(msg),90)
elseif msgcontains(msg, 'ring of the sky') then
sell(cid,2123,getCount(msg),1900)
elseif msgcontains(msg, 'crystal ring') then
sell(cid,2124,getCount(msg),100)
elseif msgcontains(msg, 'emerald bangle') then
sell(cid,2127,getCount(msg),400)

elseif msgcontains(msg, 'crossbow') then
sell(cid,2455,getCount(msg),300)
elseif msgcontains(msg, 'bow') then
sell(cid,2456,getCount(msg),150)
elseif msgcontains(msg, 'arbalest') then
sell(cid,5803,getCount(msg),10000)
elseif msgcontains(msg, 'golden bow') then
sell(cid,7438,getCount(msg),11000)
elseif msgcontains(msg, 'spear') then
sell(cid,2389,getCount(msg),70)
elseif msgcontains(msg, 'royal spear') then
sell(cid,7378,getCount(msg),170)
elseif msgcontains(msg, 'hunting spear') then
sell(cid,3965,getCount(msg),110)
elseif msgcontains(msg, 'throwing knife') then
sell(cid,2410,getCount(msg),90)
elseif msgcontains(msg, 'throwing star') then
sell(cid,2399,getCount(msg),90)
elseif msgcontains(msg, 'assassin star') then
sell(cid,7368,getCount(msg),290)
elseif msgcontains(msg, 'viper star') then
sell(cid,7366,getCount(msg),190)
elseif msgcontains(msg, 'snowball') then
sell(cid,2111,getCount(msg),10)
elseif msgcontains(msg, 'small stone') then
sell(cid,1294,getCount(msg),20)

elseif msgcontains(msg, 'moonlight rod') then
sell(cid,2186,getCount(msg),200)
elseif msgcontains(msg, 'wand of dragonbreath') then
sell(cid,2191,getCount(msg),200)
elseif msgcontains(msg, 'necrotic rod') then
sell(cid,2185,getCount(msg),1000)
elseif msgcontains(msg, 'wand of decay') then
sell(cid,2188,getCount(msg),1000)
elseif msgcontains(msg, 'terra rod') then
sell(cid,2181,getCount(msg),2000)
elseif msgcontains(msg, 'wand of cosmic energy') then
sell(cid,2189,getCount(msg),2000)
elseif msgcontains(msg, 'hailstorm rod') then
sell(cid,2183,getCount(msg),3000)
elseif msgcontains(msg, 'wand of inferno') then
sell(cid,2187,getCount(msg),3000)


elseif string.find(msg, '(%a*)bye(%a*)') and getDistanceToCreature(cid) < 4 then
selfSay('Até mais ' .. creatureGetName(cid) .. '.')
focus = 0
talk_start = 0
end
end
end


function onCreatureChangeOutfit(creature)

end


function onThink()
if (os.clock() - talk_start) > 30 then
if focus > 0 then
selfSay('Proximo...')
end
focus = 0
end
if focus ~= 0 then
if getDistanceToCreature(focus) > 5 then
selfSay('Até mais.')
focus = 0
end
end
end

 

 

 

91-thais.png

Link para o post
Compartilhar em outros sites

Esse npc é bem antigo, creio que das versões 8.0...

 

onde tiver a função "creatureGetName(cid)" troque por "getCreatureName(cid)"

vodkart_logo.png

[*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*]

 

DISCORDvodkart#6090

 

Link para o post
Compartilhar em outros sites
1 hora atrás, Vodkart disse:

Esse npc é bem antigo, creio que das versões 8.0...

 

onde tiver a função "creatureGetName(cid)" troque por "getCreatureName(cid)"

@Vodkart eu quero um NPC que vende todos os itens do Tibia 8.60 se poder me ajudar agradeço o que voce instruiu ai em cima não funciono.

Editado por Muvuka (veja o histórico de edições)

91-thais.png

Link para o post
Compartilhar em outros sites
Spoiler

<?xml version="1.0" encoding="UTF-8"?>
<npc name="Yasir" script="default.lua" walkinterval="25" floorchange="0" access="5" level="1" maglevel="1">
<health now="150" max="150"/>
<look type="146" head="85" body="7" legs="12" feet="19" addons="2"/>
<parameters>
<parameter key="module_shop" value="1" />
<parameter key="message_greet" value="Yasu me halaka |PLAYERNAME|"/>
<parameter key="shop_sellable" value="
     acorn,11213,10;
     antlers,11214,50;
     ape fur,5883,120;
     badger fur,7965,15;
     bamboo stick,12401,30;
     banana sash,12467,55;
     bat decoration,6492,2000;
     bat wing,5894,50;
     bear paw,5896,100;
     behemoth claw,5930,2000;
     black hood,10562,190;
     black wool,12404,300;
     blood preservation,12405,320;
     bloody pincers,10550,100;
     blue piece of cloth,5912,200;
     boggy dreads,10584,200;
     bone shoulderplate,11321,150;
     beholder eye,5898,80;
     bony tail,11194,210;
     book of necromantic rituals,11237,180;
     book of prayers,10563,120;
     brimstone fangs,12658,380;
     brimstone shell,12659,210;
     broken crossbow,12407,30;
     broken draken mail,12616,340;
     broken halberd,11335,100;
     broken helmet,12409,20;
     broken key ring,12608,8000;
     broken shamanic staff,12408,35;
     broken slicer,12617,120;
     brown piece of cloth,5913,100;
     bunch of troll hair,10606,30;
     bundle of cursed straw,10605,800;
     carniphila seeds,11217,50;
     carrion worm fang,11192,35;
     cat's paw,5480,2000;
     centipede leg,11218,28;
     chicken feather,5890,30;
     cobra tongue,10551,15;
     colorful feather,12470,110;
     compass,11219,45;
     corrupted flag,11326,700;
     countess sorrow's frozen tear,6536,50000;
     crab pincers,11189,35;
     cultish mask,10555,280;
     cultish robe,10556,150;
     cultish symbol,12411,500;
     cursed shoulder spikes,11327,320;
     cyclops toe,10574,55;
     dark rosary,11220,48;
     demon dust,5906,300;
     demon horn,5954,1000;
     demonic skeletal hand,10564,80;
     dirty turban,12412,120;
     downy feather,12640,20;
     dracola's eye,6546,50000;
     dragon claw,5919,8000;
     dragon priest's wandtip,11361,175;
     dragon's tail,12413,100;
     draken sulpher,12614,550;
     draken wristbands,12615,430;
     elder bonelord tentacle,11193,150;
     elven astral observer,12421,90;
     elven scouting glass,12420,50;
     elvish talisman,10552,45;
     enchanted chicken wing,5891,20000;
     essence of a bad dream,11223,360;
     eye of corruption,12627,390;
     fiery heart,10553,375;
     fish fin,5895,150;
     flask of embalming fluid,12422,30;
     flask of warrior's sweat,5885,10000;
     frost giant pelt,10575,160;
     frosty ear of a troll,10565,30;
     frosty heart,10578,280;
     gauze bandage,10566,90;
     geomancer's robe,12414,80;
     geomancer's staff,12419,120;
     ghastly dragon head,11366,700;
     ghostly tissue,10607,90;
     ghoul snack,12423,60;
     giant eye,11197,380;
     girlish hair decoration,12399,30;
     gland,8971,500;
     glob of acid slime,9967,25;
     glob of mercury,9966,20;
     glob of tar,9968,30;
     goblin ear,12495,20;
     green dragon leather,5877,100;
     green dragon scale,5920,100;
     green piece of cloth,5910,200;
     hair of a banshee,12402,350;
     half-digested piece of meat,11200,55;
     half-eaten brain,10576,85;
     hardened bone,5925,70;
     haunted piece of wood,10600,115;
     heaven blossom,2743,50;
     hellhound slobber,10554,500;
     hellspawn tail,11221,475;
     high guard flag,11332,550;
     high guard shoulderplates,11333,130;
     holy orchid,5922,90;
     honeycomb,5902,40;
     hunter's quiver,12425,80;
     hydra head,11199,600;
     iron ore,5880,500;
     jewelled belt,12426,180;
     kongra's shoulderpad,12427,100;
     lancer beetle shell,11372,80;
     legionnaire flags,11334,500;
     lion's mane,10608,60;
     lizard essence,12636,300;
     lizard leather,5876,150;
     lizard scale,5881,120;
     luminous orb,12410,1000;
     lump of dirt,10609,10;
     lump of earth,11222,130;
     magic sulphur,5904,8000;
     mammoth tusk,11238,100;
     mantassin tail,12445,280;
     minotaur horn,12428,75;
     minotaur leather,5878,80;
     miraculum,12430,60;
     Mr. Punish's handcuffs,6537,50000;
     mutated bat ear,10579,420;
     mutated flesh,11225,50;
     mutated rat tail,10585,150;
     mystical hourglass,10577,700;
     necromantic robe,12431,250;
     nettle blossom,11231,75;
     nettle spit,12432,25;
     noble turban,12442,430;
     nose ring,5804,100000;
     orc leather,12435,30;
     orc tooth,11113,150;
     orcish gear,12433,85;
     pelvis bone,12437,30;
     perfect behemoth fang,5893,250;
     petrified scream,11337,250;
     piece of archer armor,12439,20;
     piece of crocodile leather,11196,15;
     piece of dead brain,10580,420;
     piece of Massacre's shell,6540,50000;
     piece of scarab shell,10558,45;
     piece of warrior armor,12438,50;
     pig foot,10610,10;
     pile of grave earth,12440,25;
     poison spider shell,12441,10;
     poisonous slime,10557,50;
     polar bear paw,10567,30;
     protective charm,12400,60;
     purple robe,12429,110;
     quara bone,12447,500;
     quara eye,12444,350;
     quara pincers,12446,410;
     quara tentacle,12443,140;
     red dragon leather,5948,200;
     red dragon scale,5882,200;
     red piece of cloth,5911,300;
     rope belt,12448,66;
     rotten piece of cloth,11208,30;
     sabretooth,11228,400;
     safety pin,12449,120;
     sandcrawler shell,11373,20;
     scale of corruption,12629,680;
     scarab pincers,10548,280;
     scorpion tail,10568,25;
     scroll of heroic deeds,12466,230;
     scythe leg,11229,450;
     sea serpent scale,10583,520;
     seeds,7732,150;
     shaggy tail,11324,25;
     shamanic hood,12434,45;
     silky fur,11209,35;
     skeleton decoration,6524,3000;
     skull belt,12436,80;
     skunk tail,11191,50;
     small flask of eyedrops,12468,95;
     small notebook,12406,480;
     oil lamp,2062,150;
     small pitchfork,12469,70;
     snake skin,10611,400;
     sniper gloves,5875,2000;
     soul stone,5809,6000;
     spider fangs,8859,10;
     spider silk,5879,100;
     spiked iron ball,11325,100;
     spooky blue eye,10559,95;
     star herb,2800,15;
     stone herb,2799,20;
     stone wing,11195,120;
     strand of medusa hair,11226,600;
     strange symbol,2174,200;
     striped fur,11210,50;
     swamp grass,10603,20;
     tail of corruption,12628,240;
     tarantula egg,11198,80;
     tattered piece of robe,10601,120;
     tentacle piece,12622,5000;
     terramite eggs,11370,50;
     terramite legs,11371,60;
     terramite shell,11369,170;
     terrorbird beak,11190,95;
     Handmaiden's protector,6539,50000;
     Imperor's trident,6534,50000;
     plasmother remains,6535,50000;
     thick fur,11224,150;
     thorn,10560,100;
     troll green,2805,25;
     trollroot,12471,50;
     turtle shell,5899,90;
     orc tusk,8614,100;
     undead heart,11367,200;
     unholy bone,11233,480;
     vampire dust,5905,100;
     vampire teeth,10602,275;
     warmaster's wristguards,11322,200;
     warwolf fur,11235,30;
     weaver wandtip,11314,250;
     werewolf fur,11234,380;
     white piece of cloth,5909,100;
     widow's mandibles,11328,110;
     winged tail,11230,800;
     winter wolf fur,11212,20;
     witch broom,10569,60;
     wolf paw,5897,70;
     wood,5901,5;
     wool,11236,15;
     wyrm scale,10582,400;
     wyvern talisman,10561,265;
     yellow piece of cloth,5914,150;
     zaogun flag,11330,600;
     zaogun's shoulderplates,11331,150" />
</parameters>
</npc>

 

 

vodkart_logo.png

[*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*]

 

DISCORDvodkart#6090

 

Link para o post
Compartilhar em outros sites
[15/09/2021 13:48:56] [Error - Npc interface] 
[15/09/2021 13:48:56] data/npc/scripts/default.lua
[15/09/2021 13:48:56] Description: 
[15/09/2021 13:48:56] data/lib/050-function.lua:222: attempt to index a boolean value
[15/09/2021 13:48:57] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/default.lua


[15/09/2021 13:49:53] [Error - Npc interface] 
[15/09/2021 13:49:53] data/npc/scripts/default.lua
[15/09/2021 13:49:53] Description: 
[15/09/2021 13:49:53] data/lib/050-function.lua:222: attempt to index a boolean value
[15/09/2021 13:49:53] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/default.lua

 

91-thais.png

Link para o post
Compartilhar em outros sites
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Yasir" script="default.lua" walkinterval="25" floorchange="0" access="5" level="1" maglevel="1">
<health now="150" max="150"/>
<look type="146" head="85" body="7" legs="12" feet="19" addons="2"/>
<parameters>
<parameter key="module_shop" value="1" />
<parameter key="message_greet" value="Yasu me halaka |PLAYERNAME|"/>
<parameter key="shop_sellable" value="
    acorn,11213,10;
    antlers,11214,50;
    ape fur,5883,120;
    badger fur,7965,15;
    bamboo stick,12401,30;
    banana sash,12467,55;
    bat decoration,6492,2000;
    bat wing,5894,50;
    bear paw,5896,100;
    behemoth claw,5930,2000;
    black hood,10562,190;
    black wool,12404,300;
    blood preservation,12405,320;
    bloody pincers,10550,100;
    blue piece of cloth,5912,200;
    boggy dreads,10584,200;
    bone shoulderplate,11321,150;
    beholder eye,5898,80;
    bony tail,11194,210;
    book of necromantic rituals,11237,180;
    book of prayers,10563,120;
    brimstone fangs,12658,380;
    brimstone shell,12659,210;
    broken crossbow,12407,30;
    broken draken mail,12616,340;
    broken halberd,11335,100;
    broken helmet,12409,20;
    broken key ring,12608,8000;
    broken shamanic staff,12408,35;
    broken slicer,12617,120;
    brown piece of cloth,5913,100;
    bunch of troll hair,10606,30;
    bundle of cursed straw,10605,800;
    carniphila seeds,11217,50;
    carrion worm fang,11192,35;
    cats paw,5480,2000;
    centipede leg,11218,28;
    chicken feather,5890,30;
    cobra tongue,10551,15;
    colorful feather,12470,110;
    compass,11219,45;
    corrupted flag,11326,700;
    countess sorrows frozen tear,6536,50000;
    crab pincers,11189,35;
    cultish mask,10555,280;
    cultish robe,10556,150;
    cultish symbol,12411,500;
    cursed shoulder spikes,11327,320;
    cyclops toe,10574,55;
    dark rosary,11220,48;
    demon dust,5906,300;
    demon horn,5954,1000;
    demonic skeletal hand,10564,80;
    dirty turban,12412,120;
    downy feather,12640,20;
    dracolas eye,6546,50000;
    dragon claw,5919,8000;
    dragon priests wandtip,11361,175;
    dragons tail,12413,100;
    draken sulpher,12614,550;
    draken wristbands,12615,430;
    elder bonelord tentacle,11193,150;
    elven astral observer,12421,90;
    elven scouting glass,12420,50;
    elvish talisman,10552,45;
    enchanted chicken wing,5891,20000;
    essence of a bad dream,11223,360;
    eye of corruption,12627,390;
    fiery heart,10553,375;
    fish fin,5895,150;
    flask of embalming fluid,12422,30;
    flask of warriors sweat,5885,10000;
    frost giant pelt,10575,160;
    frosty ear of a troll,10565,30;
    frosty heart,10578,280;
    gauze bandage,10566,90;
    geomancers robe,12414,80;
    geomancers staff,12419,120;
    ghastly dragon head,11366,700;
    ghostly tissue,10607,90;
    ghoul snack,12423,60;
    giant eye,11197,380;
    girlish hair decoration,12399,30;
    gland,8971,500;
    glob of acid slime,9967,25;
    glob of mercury,9966,20;
    glob of tar,9968,30;
    goblin ear,12495,20;
    green dragon leather,5877,100;
    green dragon scale,5920,100;
    green piece of cloth,5910,200;
    hair of a banshee,12402,350;
    half-digested piece of meat,11200,55;
    half-eaten brain,10576,85;
    hardened bone,5925,70;
    haunted piece of wood,10600,115;
    heaven blossom,2743,50;
    hellhound slobber,10554,500;
    hellspawn tail,11221,475;
    high guard flag,11332,550;
    high guard shoulderplates,11333,130;
    holy orchid,5922,90;
    honeycomb,5902,40;
    hunters quiver,12425,80;
    hydra head,11199,600;
    iron ore,5880,500;
    jewelled belt,12426,180;
    kongras shoulderpad,12427,100;
    lancer beetle shell,11372,80;
    legionnaire flags,11334,500;
    lions mane,10608,60;
    lizard essence,12636,300;
    lizard leather,5876,150;
    lizard scale,5881,120;
    luminous orb,12410,1000;
    lump of dirt,10609,10;
    lump of earth,11222,130;
    magic sulphur,5904,8000;
    mammoth tusk,11238,100;
    mantassin tail,12445,280;
    minotaur horn,12428,75;
    minotaur leather,5878,80;
    miraculum,12430,60;
    Mr. Punishs handcuffs,6537,50000;
    mutated bat ear,10579,420;
    mutated flesh,11225,50;
    mutated rat tail,10585,150;
    mystical hourglass,10577,700;
    necromantic robe,12431,250;
    nettle blossom,11231,75;
    nettle spit,12432,25;
    noble turban,12442,430;
    nose ring,5804,100000;
    orc leather,12435,30;
    orc tooth,11113,150;
    orcish gear,12433,85;
    pelvis bone,12437,30;
    perfect behemoth fang,5893,250;
    petrified scream,11337,250;
    piece of archer armor,12439,20;
    piece of crocodile leather,11196,15;
    piece of dead brain,10580,420;
    piece of Massacres shell,6540,50000;
    piece of scarab shell,10558,45;
    piece of warrior armor,12438,50;
    pig foot,10610,10;
    pile of grave earth,12440,25;
    poison spider shell,12441,10;
    poisonous slime,10557,50;
    polar bear paw,10567,30;
    protective charm,12400,60;
    purple robe,12429,110;
    quara bone,12447,500;
    quara eye,12444,350;
    quara pincers,12446,410;
    quara tentacle,12443,140;
    red dragon leather,5948,200;
    red dragon scale,5882,200;
    red piece of cloth,5911,300;
    rope belt,12448,66;
    rotten piece of cloth,11208,30;
    sabretooth,11228,400;
    safety pin,12449,120;
    sandcrawler shell,11373,20;
    scale of corruption,12629,680;
    scarab pincers,10548,280;
    scorpion tail,10568,25;
    scroll of heroic deeds,12466,230;
    scythe leg,11229,450;
    sea serpent scale,10583,520;
    seeds,7732,150;
    shaggy tail,11324,25;
    shamanic hood,12434,45;
    silky fur,11209,35;
    skeleton decoration,6524,3000;
    skull belt,12436,80;
    skunk tail,11191,50;
    small flask of eyedrops,12468,95;
    small notebook,12406,480;
    oil lamp,2062,150;
    small pitchfork,12469,70;
    snake skin,10611,400;
    sniper gloves,5875,2000;
    soul stone,5809,6000;
    spider fangs,8859,10;
    spider silk,5879,100;
    spiked iron ball,11325,100;
    spooky blue eye,10559,95;
    star herb,2800,15;
    stone herb,2799,20;
    stone wing,11195,120;
    strand of medusa hair,11226,600;
    strange symbol,2174,200;
    striped fur,11210,50;
    swamp grass,10603,20;
    tail of corruption,12628,240;
    tarantula egg,11198,80;
    tattered piece of robe,10601,120;
    tentacle piece,12622,5000;
    terramite eggs,11370,50;
    terramite legs,11371,60;
    terramite shell,11369,170;
    terrorbird beak,11190,95;
    Handmaidens protector,6539,50000;
    Imperors trident,6534,50000;
    plasmother remains,6535,50000;
    thick fur,11224,150;
    thorn,10560,100;
    troll green,2805,25;
    trollroot,12471,50;
    turtle shell,5899,90;
    orc tusk,8614,100;
    undead heart,11367,200;
    unholy bone,11233,480;
    vampire dust,5905,100;
    vampire teeth,10602,275;
    warmasters wristguards,11322,200;
    warwolf fur,11235,30;
    weaver wandtip,11314,250;
    werewolf fur,11234,380;
    white piece of cloth,5909,100;
    widows mandibles,11328,110;
    winged tail,11230,800;
    winter wolf fur,11212,20;
    witch broom,10569,60;
    wolf paw,5897,70;
    wood,5901,5;
    wool,11236,15;
    wyrm scale,10582,400;
    wyvern talisman,10561,265;
    yellow piece of cloth,5914,150;
    zaogun flag,11330,600;
    zaoguns shoulderplates,11331,150" />
</parameters>
</npc>

 

vodkart_logo.png

[*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*]

 

DISCORDvodkart#6090

 

Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.


  • Conteúdo Similar

    • Por cloudrun2023
      CloudRun - Sua Melhor Escolha para Hospedagem de OTServer!
      Você está procurando a solução definitiva para hospedar seu OTServer com desempenho imbatível e segurança inigualável? Não procure mais! Apresentamos a CloudRun, sua parceira confiável em serviços de hospedagem na nuvem.
       
      Recursos Exclusivos - Proteção DDoS Avançada:
      Mantenha seu OTServer online e seguro com nossa robusta proteção DDoS, garantindo uma experiência de jogo ininterrupta para seus jogadores.
       
      Servidores Ryzen 7 Poderosos: Desfrute do poder de processamento superior dos servidores Ryzen 7 para garantir um desempenho excepcional do seu OTServer. Velocidade e estabilidade garantidas!
       
      Armazenamento NVMe de Alta Velocidade:
      Reduza o tempo de carregamento do jogo com nosso armazenamento NVMe ultrarrápido. Seus jogadores vão adorar a rapidez com que podem explorar o mundo do seu OTServer.
       
      Uplink de até 1GB:
      Oferecemos uma conexão de alta velocidade com até 1GB de largura de banda, garantindo uma experiência de jogo suave e livre de lag para todos os seus jogadores, mesmo nos momentos de pico.
       
      Suporte 24 Horas:
      Estamos sempre aqui para você! Nossa equipe de suporte está disponível 24 horas por dia, 7 dias por semana, para resolver qualquer problema ou responder a qualquer pergunta que você possa ter. Sua satisfação é a nossa prioridade.
       
      Fácil e Rápido de Começar:
      Configurar seu OTServer na CloudRun é simples e rápido. Concentre-se no desenvolvimento do seu jogo enquanto cuidamos da hospedagem.
       
      Entre em Contato Agora!
      Website: https://central.cloudrun.com.br/index.php?rp=/store/cloud-ryzen-brasil
      Email: [email protected]
      Telefone: (47) 99902-5147

      Não comprometa a qualidade da hospedagem do seu OTServer. Escolha a CloudRun e ofereça aos seus jogadores a melhor experiência de jogo possível. Visite nosso site hoje mesmo para conhecer nossos planos e começar!
       
      https://central.cloudrun.com.br/index.php?rp=/store/cloud-ryzen-brasil
       
      CloudRun - Onde a Velocidade Encontra a Confiabilidade!
       

    • Por FeeTads
      SALVE rapaziada do TK, esses dias vim pensando em novos scripts pro meu OT, e em um deles eu precisava que determinada area não contasse frag pro player que matasse outros, PORÉM eu precisava que os players que morressem nessa area ainda assim tivessem as penalidades da sua morte, procurei por ai, achei alguns scripts que apenas tiravam o SKULL e não realmente o FRAG do player.

      **script atualizado 22/10/2023** - melhorado e otimizado, levei o script pra puxar as infos por .lua / creatureScripts

      vou disponibilizar o code aqui, e o que fazer pra determinada area não contar frag.

      SOURCE OTX 2 / TFS 0.x, Funciona em TFS 1.x mudando as tags e ajeitando as sintaxes.

      vá em creatureevent.cpp

      procure por:
      else if(type == "preparedeath") _type = CREATURE_EVENT_PREPAREDEATH;
      Adiciona abaixo:
      else if(type == "nocountfrag") _type = CREATURE_EVENT_NOCOUNTFRAG;

      procure por:
      case CREATURE_EVENT_PREPAREDEATH: return "onPrepareDeath";  
      Adicione abaixo: 
      case CREATURE_EVENT_NOCOUNTFRAG: return "noCountFragArea";

      procure por:
      case CREATURE_EVENT_PREPAREDEATH: return "cid, deathList";
      Adicione abaixo:
      case CREATURE_EVENT_NOCOUNTFRAG: return "cid, target";

      agora no mesmo arquivo, vá até o final do arquivo e adicione essa função:
      uint32_t CreatureEvent::executeNoCountFragArea(Creature* creature, Creature* target) { //noCountFragArea(cid, target) if(m_interface->reserveEnv()) { ScriptEnviroment* env = m_interface->getEnv(); if(m_scripted == EVENT_SCRIPT_BUFFER) { env->setRealPos(creature->getPosition()); std::ostringstream scriptstream; scriptstream << "local cid = " << env->addThing(creature) << std::endl; scriptstream << "local target = " << env->addThing(target) << std::endl; if(m_scriptData) scriptstream << *m_scriptData; bool result = true; if(m_interface->loadBuffer(scriptstream.str())) { lua_State* L = m_interface->getState(); result = m_interface->getGlobalBool(L, "_result", true); } m_interface->releaseEnv(); return result; } else { #ifdef __DEBUG_LUASCRIPTS__ std::ostringstream desc; desc << creature->getName(); env->setEvent(desc.str()); #endif env->setScriptId(m_scriptId, m_interface); env->setRealPos(creature->getPosition()); lua_State* L = m_interface->getState(); m_interface->pushFunction(m_scriptId); lua_pushnumber(L, env->addThing(creature)); lua_pushnumber(L, env->addThing(target)); bool result = m_interface->callFunction(2); m_interface->releaseEnv(); return result; } } else { std::clog << "[Error - CreatureEvent::noCountFragArea] Call stack overflow." << std::endl; return 0; } }

      agora vá em creatureevent.h

      procure por:
      CREATURE_EVENT_PREPAREDEATH
      adicione abaixo:
      CREATURE_EVENT_NOCOUNTFRAG

      procure por:
      uint32_t executePrepareDeath(Creature* creature, DeathList deathList);
      Adicione abaixo:
      uint32_t executeNoCountFragArea(Creature* creature, Creature* target);

      agora vá em player.cpp

      procure por:
      bool Player::onKilledCreature(Creature* target, DeathEntry& entry)
      abaixo de:
      War_t enemy; if(targetPlayer->getEnemy(this, enemy)) { if(entry.isLast()) IOGuild::getInstance()->updateWar(enemy); entry.setWar(enemy); }
      Adicione o seguinte código:
      if (targetPlayer){ CreatureEventList killEvents = getCreatureEvents(CREATURE_EVENT_NOCOUNTFRAG); for (const auto &event : killEvents) { if (!event->executeNoCountFragArea(this, target)) { return true; } } }

      //

      Feito isso, tudo completo na sua source, agora é necessário adicionar o creaturescript dentro do servidor

      vá até creaturescripts/scripts
      crie um arquivo chamado, "noCountFragInArea.lua"
      e dentro dele cole o código:
       
      --[[ script feito por feetads / TibiaKing ]]-- --[[ discord: feetads / FeeTads#0246 ]]-- -- Add positions here for which you do not want to count frags local areas = { [1] = {from = {x = 91, y = 122, z = 7}, to = {x = 98, y = 127, z = 7}}, -- from = area superior esquerda / to = area inferior direita (formando um quadrado) } local onlyKillerInArea = false -- only killer need to be in area? function noCountFragArea(cid, target) if not isCreature(cid) or not isCreature(target) then return true end local posKiller = getPlayerPosition(cid) local posTarget = getPlayerPosition(target) for i = 1, #areas do local area = areas[i] if isInArea(posKiller, area.from, area.to) then if onlyKillerInArea then return false elseif isInArea(posTarget, area.from, area.to) then return false end end end return true end
      agora em creaturescripts.xml
      <event type="nocountfrag" name="fragarea" event="script" value="noCountFragInArea.lua"/>
      agora em creaturescripts/scripts/login.lua
       procure por OU semelhante a esse:
      registerCreatureEvent(cid, "AdvanceSave")
      e abaixo adicione:
      registerCreatureEvent(cid, "fragarea")

      //


      Agora tudo certo, quando quiser adiciona uma area que não pega frag, vá até o script e apenas coloque a area, igual o demonstrado no script

      Exemplo:
      local areas = { [1] = {from = {x = 91, y = 122, z = 7}, to = {x = 98, y = 127, z = 7}}, [2] = {from = {x = 1000, y = 1000, z = 7}, to = {x = 1100, y = 1100, z = 7}}, }
      assim somente colocando a area no script e abrindo o server ou dando /reload, já funcionará a area como não pegar frag.
      Esse sistema pode ser bom pra areas de pvp ativo, onde você ainda quer que o player que morrer perca os atributos, como se fosse uma morte normal, porém não conta frag pra quem matar.
      Bom pra sistemas tipo castle 48h (guild war), onde há diversas mortes e risco de pegar red, atrapalhando a war.

      Façam bom proveito dos scripts, e deixem os créditos no script rsrs

      **Eu fiz as alterações e o simples código por isso vim disponibilizar, créditos meus**
    • Por Muvuka
      Abri canal a força creaturescript acho que funcione no creaturescript cria script creaturescript
       
      <channel id="9" name="HELP" logged="yes"/>
      <channel id="12" name="Report Bugs" logged="yes"/>
      <channel id="13" name="Loot" logged="yes"/>
      <channel id="14" name="Report Character Rules Tibia Rules" logged="yes"/>
      <channel id="15" name="Death Channel"/>
      <channel id="6548" name="DexSoft" level="1"/>
      <channel id="7" name="Reports" logged="yes"/>
       
      antes de 
              if(lastLogin > 0) then adicione isso:
                      doPlayerOpenChannel(cid, CHANNEL_HELP) doPlayerOpenChannel(cid, 1,  2, 3) = 1,2 ,3 Channels, entendeu? NÃO FUNCIONA EU QUERO UM MEIO DE ABRI SEM USA A SOURCE
       
      EU NÃO CONSEGUI ABRI EU NÃO TENHO SOURCE
       
       
    • Por bolachapancao
      Rapaziada seguinte preciso de um script que ao utilizar uma alavanca para até 4 jogadores.
      Os jogadores serão teleportados para hunt durante uma hora e depois de uma hora os jogadores serão teleportados de volta para o templo.
       
      Observação: caso o jogador morra ou saia da hunt o evento hunt é cancelado.

      Estou a base canary
      GitHub - opentibiabr/canary: Canary Server 13.x for OpenTibia community.
       
    • Por RAJADAO
      .Qual servidor ou website você utiliza como base? 
      Sabrehaven 8.0
      Qual o motivo deste tópico? 
      Ajuda com novos efeitos
       
      Olá amigos, gostaria de ajuda para introduzir os seguintes efeitos no meu servidor (usando o Sabrehaven 8.0 como base), adicionei algumas runas novas (avalanche, icicle, míssil sagrado, stoneshower & Thunderstorm) e alguns novos feitiços (exevo mas san, exori san, exori tera, exori frigo, exevo gran mas frigo, exevo gran mas tera, exevo tera hur, exevo frigo hur) mas nenhum dos efeitos dessas magias parece existir no servidor, alguém tem um link para um tutorial ou algo assim para que eu possa fazer isso funcionar?
      Desculpe pelo mau inglês, sou brasileiro.

      Obrigado!


      AVALANCHE RUNE id:3161 \/
      (COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
      (COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA)
      (COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ICE)

      STONESHOWER RUNE id:3175 \/
      (COMBAT_PARAM_TYPE, COMBAT_EARTHDAMAGE)
      (COMBAT_PARAM_EFFECT, CONST_ME_STONES)
      (COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_EARTH)

      THUNDERSTORM RUNE id:3202 \/
      (COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
      (COMBAT_PARAM_EFFECT, CONST_ME_E NERGYHIT)
      (COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGYBALL)

      ICICLE RUNE id:3158 \/
      COMBAT_ICEDAMAGE
      CONST_ME_ICEAREA
      CONST_ANI_ICE

      SANTO MÍSSIL RUNA id:3182 \/
      (COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
      (COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
      (COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
      (COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_HOLY)

      CONST_ME_PLANTATTACK (exevo gran mas tera)
      CONST_ME_ICETORNADO (exevo gran mas frigo)
      CONST_ME_SMALLPLANTS (exevo tera hur)
      CONST_ME_ICEAREA (exevo frigo hur)
      CONST_ME_ICEATTACK (exori frigo)
      CONST_ME_CARNIPHILA (exori tera)

      EXORI SAN \/
      (COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLHOLY)
      CONST_ME_HOLYDAM IDADE

      EXEVO MAS SAN \/
      CONST_ME_HOLYAREA
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo