CorpsCool 0 Postado Outubro 26, 2005 Share Postado Outubro 26, 2005 Vo posta um npc que vende Promoção exemplo quando o cara da look em alguem aparece druid ele vende a promoção dai vai aparece Elder Druid. O primeiro que fala mal eu numca mais apareço no forum xtibia to nervozo cum esses noob da dsigraça que fika falando ##### so pq naum sabe Ai vai o Script pro npc: focus = 0talk_start = 0target = 0following = falseattacking = falsefunction onThingMove(creature, thing, oldpos, oldstackpos)endfunction onCreatureAppear(creature)endfunction onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye then.') focus = 0 talk_start = 0 endendfunction onCreatureTurn(creature)endfunction msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))endfunction onCreatureSay(cid, type, msg) msg = string.lower(msg) if ((string.find(msg, '(%a*)hi(%a*)')) and (focus == 0)) and getDistanceToCreature(cid) < 4 then selfSay('Hello ' .. creatureGetName(cid) .. '! I sell promotions for 20k.') focus = cid talk_start = os.clock() elseif string.find(msg, '(%a*)hi(%a*)') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Sorry, ' .. creatureGetName(cid) .. '! I talk to you in a minute.') elseif focus == cid then talk_start = os.clock() if msgcontains(msg, 'promotion') then if isPromoted(cid) then selfSay('Sorry, you are already promoted.') focus = 0 else if getPlayerLevel(creatureGetName(cid)) >= 20 then if pay(cid,20000) then promote(cid) selfSay('You are now promoted!') else selfSay('Sorry, you do not have enough money.') end else selfSay('Sorry, you need level 20 to buy promotion.') end end elseif string.find(msg, '(%a*)bye(%a*)') and getDistanceToCreature(cid) < 4 then selfSay('Good bye, ' .. creatureGetName(cid) .. '!') focus = 0 talk_start = 0 end endendfunction onCreatureChangeOutfit(creature)endfunction 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('Good bye then.') focus = 0 end endend é isso ai Link para o comentário https://xtibia.com/forum/topic/2231-promotion/ Compartilhar em outros sites More sharing options...
Ser 0 Postado Outubro 26, 2005 Share Postado Outubro 26, 2005 ele vende magias somenta pra p.a? ql server tem esse sistema de p.a? se der certo mesmo ta de parabens.. ah outra coisa.. ql server é oq vc usa? se for o Yours + darkonia posta ae.. pq o q eu achei da erro e n abre.. Link para o comentário https://xtibia.com/forum/topic/2231-promotion/#findComment-11522 Compartilhar em outros sites More sharing options...
CorpsCool 0 Postado Outubro 26, 2005 Autor Share Postado Outubro 26, 2005 Naum vende magia ele vende p.a 20k tipo faz um serve cum acc para ser free dai faz esse npc e pode em algum luga e ele ira vende p.a por 20k hi promotion yes Link para o comentário https://xtibia.com/forum/topic/2231-promotion/#findComment-11533 Compartilhar em outros sites More sharing options...
cherife 0 Postado Outubro 26, 2005 Share Postado Outubro 26, 2005 HUHUHU ke tzao sempre kis isso vlw ai parabens!!!!! mas tipo como faso pros free acc n pod compra certas magias ou coisas n poder ir pra outras ilhas n almenta a vida e a mana rapido??? Link para o comentário https://xtibia.com/forum/topic/2231-promotion/#findComment-11651 Compartilhar em outros sites More sharing options...
x9kill 1 Postado Outubro 26, 2005 Share Postado Outubro 26, 2005 very very rox sempre tem gente no msn me pedindo um npc assim , agora ja tenhu um link . vlw corpscool xd Link para o comentário https://xtibia.com/forum/topic/2231-promotion/#findComment-11653 Compartilhar em outros sites More sharing options...
Watsor 0 Postado Outubro 26, 2005 Share Postado Outubro 26, 2005 Npc bem rox Vlw Flw Link para o comentário https://xtibia.com/forum/topic/2231-promotion/#findComment-11660 Compartilhar em outros sites More sharing options...
CorpsCool 0 Postado Outubro 27, 2005 Autor Share Postado Outubro 27, 2005 De nada fazer oque é a vida Link para o comentário https://xtibia.com/forum/topic/2231-promotion/#findComment-11692 Compartilhar em outros sites More sharing options...
lelozoin 0 Postado Outubro 27, 2005 Share Postado Outubro 27, 2005 intendi nada =X Link para o comentário https://xtibia.com/forum/topic/2231-promotion/#findComment-11813 Compartilhar em outros sites More sharing options...
Manchim 0 Postado Outubro 27, 2005 Share Postado Outubro 27, 2005 Muitoo bom corpscol.. vlw ae flws Link para o comentário https://xtibia.com/forum/topic/2231-promotion/#findComment-11815 Compartilhar em outros sites More sharing options...
Ser 0 Postado Outubro 28, 2005 Share Postado Outubro 28, 2005 Ops kra errei.. n é magia n, é promotion (ek, ed, ms, rp).. ele so vende promotion pros premmy acc (p.a) ou pra tds do server? e ql server vc usa com o sistema de p.a? Link para o comentário https://xtibia.com/forum/topic/2231-promotion/#findComment-12080 Compartilhar em outros sites More sharing options...
Ser 0 Postado Outubro 28, 2005 Share Postado Outubro 28, 2005 esse scrpt é de vende p.a ou promotion? Link para o comentário https://xtibia.com/forum/topic/2231-promotion/#findComment-12082 Compartilhar em outros sites More sharing options...
CorpsCool 0 Postado Outubro 29, 2005 Autor Share Postado Outubro 29, 2005 É eu iscrevi errado mais irei tentar fazer pra p.a dai e posto ai Link para o comentário https://xtibia.com/forum/topic/2231-promotion/#findComment-12360 Compartilhar em outros sites More sharing options...
daniboy11 0 Postado Outubro 30, 2005 Share Postado Outubro 30, 2005 kra, valeu msm, assim u server fika mais real! Link para o comentário https://xtibia.com/forum/topic/2231-promotion/#findComment-12496 Compartilhar em outros sites More sharing options...
Shinoi Lee 0 Postado Outubro 30, 2005 Share Postado Outubro 30, 2005 vlw Corps, sempre ajudano, akele house editor mto rox, e agora esse npc ae, vlw mesmo manu Link para o comentário https://xtibia.com/forum/topic/2231-promotion/#findComment-12677 Compartilhar em outros sites More sharing options...
CorpsCool 0 Postado Outubro 31, 2005 Autor Share Postado Outubro 31, 2005 hehe de nada to tentando arruma em algum luga ou fazer um npc que venda p.a mais ta F*D* mais eu vo posta ainda Link para o comentário https://xtibia.com/forum/topic/2231-promotion/#findComment-12777 Compartilhar em outros sites More sharing options...
Posts Recomendados