LU

Npc De Bps De Runes Com Cargas Normais

Por lucas1000, 17 de ago. de 2008 em NPCs, monsters e raids

script
11
2.4k
lucas1000L
17 de agosto de 2008 às 22:44

Va na pasta Data/NPC do seu server copie e cole algum arquivo .xml e dentro dele coloque isso:

 

 

<?xml version="1.0"?>

<npc name="Vendedor de runas" script="data/npc/scripts/bp_de_runa.lua" access="9" autowalk="0">

<mana now="800" max="800"/>

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

<look type="134" head="78" body="88" legs="0" feet="88"/>

</npc>

 

Depois feche e salve renomeie pra Vendedor de runas

 

depois va na pasta Data/NPC/Scripts copie algum arquivo .lua e cole isso dentro dele

 

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('Good bye then.')

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)

local msg = string.lower(msg)

 

if msgcontains(msg, 'hi') and focus == 0 and getDistanceToCreature(cid) < 4 then

selfSay('Hello ' .. creatureGetName(cid) .. '! Eu vendo Bps de runes, Wands e Rods para ver os preços diga bps de runes.')

focus = cid

talk_start = os.clock()

 

elseif msgcontains(msg, 'hi') and focus ~= cid and getDistanceToCreature(cid) < 4 then

selfSay('Sorry, ' .. creatureGetName(cid) .. '! Eu ja falo contigo.')

 

elseif focus == cid then

talk_start = os.clock()

 

if msgcontains(msg, 'bps de runes') then

selfSay('Bp de sd (8k), Bp de explosion (6.5k), Bp de UH (6k), Bp HMM (2.5k), ')

elseif msgcontains(msg, 'wands') then

selfSay('I sell wand of inferno (15k), plague (5k), cosmic energy (10k), vortex (500gp) and dragonbreath (1k).')

elseif msgcontains(msg, 'rods') then

selfSay('I sell quagmire (10k), snakebite (500gp), tempest (15k), volcanic (5k) and moonlight rod (1k).')

 

elseif msgcontains(msg, 'inferno') then

buy(cid,2187,getCount(msg),15000)

elseif msgcontains(msg, 'plague') then

buy(cid,2188,getCount(msg),5000)

elseif msgcontains(msg, 'cosmic energy') then

buy(cid,2189,getCount(msg),10000)

elseif msgcontains(msg, 'vortex') then

buy(cid,2190,getCount(msg),500)

elseif msgcontains(msg, 'dragonbreath') then

buy(cid,2191,getCount(msg),1000)

 

elseif msgcontains(msg, 'quagmire') then

buy(cid,2181,getCount(msg),10000)

elseif msgcontains(msg, 'snakebite') then

buy(cid,2182,getCount(msg),500)

elseif msgcontains(msg, 'tempest') then

buy(cid,2183,getCount(msg),15000)

elseif msgcontains(msg, 'volcanic') then

buy(cid,2185,getCount(msg),5000)

elseif msgcontains(msg, 'moonlight') then

buy(cid,2186,getCount(msg),1000)

 

elseif msgcontains(msg, 'bp sd') then

buyContainer(cid,2003,2268,1,8000)

 

elseif msgcontains(msg, 'bp explosion') then

 

buyContainer(cid,2000,2313,6,6500)

elseif msgcontains(msg, 'bp uh') then

 

buyContainer(cid,2001,2273,1,6000)

elseif msgcontains(msg, 'bp hmm') then

 

buyContainer(cid,2002,2311,10,2500)

elseif msgcontains(msg, 'bp gfb') then

 

buyContainer(cid,2000,2304,4,4000)

 

elseif msgcontains(msg, 'blank') then

buy(cid,2260,getCount(msg),5)

 

elseif string.find(msg, '(%a*)bye(%a*)') and getDistanceToCreature(cid) < 4 then

selfSay('Good bye, ' .. 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('Next Please...')

end

focus = 0

end

if focus ~= 0 then

if getDistanceToCreature(focus) > 5 then

selfSay('Flw volte sempre ^^.')

focus = 0

end

end

end

 

 

Renomeie para bp_de_runa.lua

 

 

Duvidas / Erros tell me ^^

 

Créditos:

 

100% pra mim que fiz o npc do 0 entaum se for postar em algumoutro lugar gimme creditos ^^

Editado Agosto 17 por lucas1000

2 semanas depois...
rubuvivR
29 de agosto de 2008 às 00:14

cara como eu add ese npc no meu mapa editor?

DiegoRon7D
01 de setembro de 2008 às 00:22

//retirado

Editado Outubro 20 por Dlyd

satan666S
05 de setembro de 2008 às 18:08

e pra q versao?

3 semanas depois...
ricop522R
25 de setembro de 2008 às 19:59

Como add no MAP Editor

BOA PERGUNTA

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DA PRA RESPONDER?

TaviaumT
26 de setembro de 2008 às 21:02

Galera que perguntou como add o NPC no map editor, é o seguinte:

 

Vá na pasta do map editor, clique em creatures.xml

 

No final do arquivo, vai ter:

<---NPC's---/>

E o nome de vários NPCs da seguinte forma:

<creature looktype="128" name="Adolfo" head="109" body="109" legs="128" feet="127" type="npc"/>

Ai você vai copiar alguma linha, e adcionar embaixo da última linha que tiver lá, dai vai ficar assim:

última linha que já existia aqui, ex:

<creature looktype="134" name="Mike Soprano" head="78" body="88" legs="0" feet="88" type="npc"/>

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx <- linha copiada

</creatures>

 

Agora, vc abre a pasta do server, Data/NPC/Seu npc.xml

Dentro do arquivo você vai utilizar a seguinte linha:

<?xml version="1.0"?>

<npc name="Mike Soprano" script="data/npc/scripts/bp_de_runa.lua" access="9" autowalk="0">

<mana now="800" max="800"/>

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

<look type="134" head="78" body="88" legs="0" feet="88"/>

</npc>

 

Agora você vai lá no creatures.xml, e na linha que você copiou, vc vai mudar os valores de: look type, head, body, legs, feet, addon SE TIVER (ficará depois de feet="x" e antes de type="npc").

 

Então pro caso desse npc ficaria assim no creatures.xml:

<creature looktype="134" name="Vendedor de Runas" head="78" body="88" legs="0" feet="88" type="npc"/>

</creatures>

 

Só salvar, abrir o map editor denovo e pronto. Daí vai la em NPC (no map editor já), e ele vai ser o último.

 

Se não entenderem alguma coisa só perguntar ^^

 

Abraços! Espero ter ajudado!

1 mês depois...
ThalasT
12 de outubro de 2008 às 19:45

Exelente !

Eu tava precisando dum npc pro meu ServFull xDD

 

Vlws ai !

 

Att,

@Thalas

9513579
17 de outubro de 2008 às 22:07

 

Passou o SCAN do que se o cara não colocou nenhum link para download?

 

@Topic

 

Funciona pra TFS 0.0.2 esse script aí?

 

Atenciosamente,

XDDDDDDDDDD.

budlesB
18 de outubro de 2008 às 12:24

uHuH

mt bom

satan666S
20 de outubro de 2008 às 20:01
http://www.virustotal.com/pt/analisis/99a8...cfd2593f55c0098

ta ai passei O scan

 

AhnLab-V3 2008.8.12.0 2008.08.11 -

AntiVir 7.8.1.19 2008.08.11 TR/Delf.BOZ.1

Authentium 5.1.0.4 2008.08.11 -

Avast 4.8.1195.0 2008.08.11 Win32:Delf-KWQ

AVG 8.0.0.156 2008.08.11 Generic10.KQN

BitDefender 7.2 2008.08.11 Trojan.Agent.AIHJ

CAT-QuickHeal 9.50 2008.08.11 Trojan.Delf.boz

ClamAV 0.93.1 2008.08.11 Trojan.Delf-4705

DrWeb 4.44.0.09170 2008.08.11 Win32.HLLW.Autoruner.1754

eSafe 7.0.17.0 2008.08.11 Win32.Delf.boz

eTrust-Vet 31.6.6023 2008.08.11 -

Ewido 4.0 2008.08.11 Trojan.Delf.boz

F-Prot 4.4.4.56 2008.08.11 -

Fortinet 3.14.0.0 2008.08.11 -

GData 2.0.7306.1023 2008.08.11 Trojan.Win32.Delf.boz

Ikarus T3.1.1.34.0 2008.08.11 Win32.HLLW.Autoruner.1754

K7AntiVirus 7.10.411 2008.08.11 Trojan.Win32.Delf.boz

Kaspersky 7.0.0.125 2008.08.11 Trojan.Win32.Delf.boz

McAfee 5358 2008.08.11 -

Microsoft 1.3807 2008.08.11 -

NOD32v2 3347 2008.08.11 probably a variant of Win32/Delf

Norman 5.80.02 2008.08.11 -

Panda 9.0.0.4 2008.08.11 Trj/Downloader.MDW

PCTools 4.4.2.0 2008.08.11 -

Rising 20.57.02.00 2008.08.11 -

Sophos 4.32.0 2008.08.11 Mal/Generic-A

Sunbelt 3.1.1538.1 2008.08.09 -

Symantec 10 2008.08.11 Trojan Horse

TheHacker 6.2.96.395 2008.08.08 -

TrendMicro 8.700.0.1004 2008.08.11 -

VBA32 3.12.8.3 2008.08.11 Win32.HLLW.Autoruner.1754

ViRobot 2008.8.11.1331 2008.08.11 -

VirusBuster 4.5.11.0 2008.08.11 -

Webwasher-Gateway 6.6.2 2008.08.11 Trojan.Delf.BOZ.1

 

 

scann???????????????????????

do q meu filho nao tem nenhum download aki...... c ta floodando isso sim....... noob

 

 

funciona em tfs?

DlydD
20 de outubro de 2008 às 20:05

DiegoRon7

Usuário suspenso por 365 dias por querer incriminar outro membro com provas falsas.

 

Abraços.