Ir para conteúdo

Npc De Runes Com Todas As Quantidades


Posts Recomendados

 

NPC Runes

Vendendo em todas as quantidades

 

 

O que possui

Caminha

Pede confirmação antes de vender a rune

Pode ser editado facilmente por qualquer pessoa

Vende as runes:

HMM

GFB

SD

UH

Explosion

Script:

 

 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('Good 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('Hi ' .. creatureGetName(cid) .. ', say \'offers\' to see the pricelist.') 	 focus = cid 	 talk_start = os.clock()  end  if string.find(msg, '(%a*)hi(%a*)') and (focus ~= cid) and getDistanceToCreature(cid) < 3 then 	 selfSay('Please wait...')  end  if msgcontains(msg, 'offers') and focus == cid then  selfSay('I sell SDs, UHs, HMMs, GFBs and Explosions. I sell them for all counts, you only need to say 1 SD, 2 SD, 3 SD, etc...') 	 talk_start = os.clock()  end      if msgcontains(msg, 'hmm') and focus == cid then	item = 2311	price = 10if msgcontains(msg, '2') thencont = 2elseif msgcontains(msg, '3') thencont = 3elseif msgcontains(msg, '4') thencont = 4elseif msgcontains(msg, '5') thencont = 5elseif msgcontains(msg, '6') thencont = 6elseif msgcontains(msg, '7') thencont = 7elseif msgcontains(msg, '8') thencont = 8elseif msgcontains(msg, '9') thencont = 9elseif msgcontains(msg, '10') thencont = 10elseif msgcontains(msg, '11') thencont = 11elseif msgcontains(msg, '12') thencont = 12elseif msgcontains(msg, '13') thencont = 13elseif msgcontains(msg, '14') thencont = 14elseif msgcontains(msg, '15') thencont = 15elseif msgcontains(msg, '16') thencont = 16elseif msgcontains(msg, '17') thencont = 17elseif msgcontains(msg, '18') thencont = 18elseif msgcontains(msg, '19') thencont = 19elseif msgcontains(msg, '20') thencont = 20elseif msgcontains(msg, '21') thencont = 21elseif msgcontains(msg, '22') thencont = 22elseif msgcontains(msg, '23') thencont = 23elseif msgcontains(msg, '24') thencont = 24elseif msgcontains(msg, '25') thencont = 25elseif msgcontains(msg, '26') thencont = 26elseif msgcontains(msg, '27') thencont = 27elseif msgcontains(msg, '28') thencont = 28elseif msgcontains(msg, '29') thencont = 29elseif msgcontains(msg, '30') thencont = 30elseif msgcontains(msg, '31') thencont = 31elseif msgcontains(msg, '32') thencont = 32elseif msgcontains(msg, '33') thencont = 33elseif msgcontains(msg, '34') thencont = 34elseif msgcontains(msg, '35') thencont = 35elseif msgcontains(msg, '36') thencont = 36elseif msgcontains(msg, '37') thencont = 37elseif msgcontains(msg, '38') thencont = 38elseif msgcontains(msg, '39') thencont = 39elseif msgcontains(msg, '40') thencont = 40elseif msgcontains(msg, '41') thencont = 41elseif msgcontains(msg, '42') thencont = 42elseif msgcontains(msg, '43') thencont = 43elseif msgcontains(msg, '44') thencont = 44elseif msgcontains(msg, '45') thencont = 45elseif msgcontains(msg, '46') thencont = 46elseif msgcontains(msg, '47') thencont = 47elseif msgcontains(msg, '48') thencont = 48elseif msgcontains(msg, '49') thencont = 49elseif msgcontains(msg, '50') thencont = 50elseif msgcontains(msg, '51') thencont = 51elseif msgcontains(msg, '52') thencont = 52elseif msgcontains(msg, '53') thencont = 53elseif msgcontains(msg, '54') thencont = 54elseif msgcontains(msg, '55') thencont = 55elseif msgcontains(msg, '56') thencont = 56elseif msgcontains(msg, '57') thencont = 57elseif msgcontains(msg, '58') thencont = 58elseif msgcontains(msg, '59') thencont = 59elseif msgcontains(msg, '60') thencont = 60elseif msgcontains(msg, '61') thencont = 61elseif msgcontains(msg, '62') thencont = 62elseif msgcontains(msg, '63') thencont = 63elseif msgcontains(msg, '64') thencont = 64elseif msgcontains(msg, '65') thencont = 65elseif msgcontains(msg, '66') thencont = 66elseif msgcontains(msg, '67') thencont = 67elseif msgcontains(msg, '68') thencont = 68elseif msgcontains(msg, '69') thencont = 69elseif msgcontains(msg, '70') thencont = 70elseif msgcontains(msg, '71') thencont = 71elseif msgcontains(msg, '72') thencont = 72elseif msgcontains(msg, '73') thencont = 73elseif msgcontains(msg, '74') thencont = 74elseif msgcontains(msg, '75') thencont = 75elseif msgcontains(msg, '76') thencont = 76elseif msgcontains(msg, '77') thencont = 77elseif msgcontains(msg, '78') thencont = 78elseif msgcontains(msg, '79') thencont = 79elseif msgcontains(msg, '80') thencont = 80elseif msgcontains(msg, '81') thencont = 81elseif msgcontains(msg, '82') thencont = 82elseif msgcontains(msg, '83') thencont = 83elseif msgcontains(msg, '84') thencont = 84elseif msgcontains(msg, '85') thencont = 85elseif msgcontains(msg, '86') thencont = 86elseif msgcontains(msg, '87') thencont = 87elseif msgcontains(msg, '88') thencont = 88elseif msgcontains(msg, '89') thencont = 89elseif msgcontains(msg, '90') thencont = 90elseif msgcontains(msg, '91') thencont = 91elseif msgcontains(msg, '92') thencont = 92elseif msgcontains(msg, '93') thencont = 93elseif msgcontains(msg, '94') thencont = 94elseif msgcontains(msg, '95') thencont = 95elseif msgcontains(msg, '96') thencont = 96elseif msgcontains(msg, '97') thencont = 97elseif msgcontains(msg, '98') thencont = 98elseif msgcontains(msg, '99') thencont = 99elseif msgcontains(msg, '100') thencont = 100elsecont = 1endcprice = price * cont	selfSay('Do you want to buy ' .. cont .. ' HMM for ' .. cprice .. ' golds?')  talk_start = os.clock()  end      if msgcontains(msg, 'sd') and focus == cid then	item = 2268	price = 200if msgcontains(msg, '2') thencont = 2elseif msgcontains(msg, '3') thencont = 3elseif msgcontains(msg, '4') thencont = 4elseif msgcontains(msg, '5') thencont = 5elseif msgcontains(msg, '6') thencont = 6elseif msgcontains(msg, '7') thencont = 7elseif msgcontains(msg, '8') thencont = 8elseif msgcontains(msg, '9') thencont = 9elseif msgcontains(msg, '10') thencont = 10elseif msgcontains(msg, '11') thencont = 11elseif msgcontains(msg, '12') thencont = 12elseif msgcontains(msg, '13') thencont = 13elseif msgcontains(msg, '14') thencont = 14elseif msgcontains(msg, '15') thencont = 15elseif msgcontains(msg, '16') thencont = 16elseif msgcontains(msg, '17') thencont = 17elseif msgcontains(msg, '18') thencont = 18elseif msgcontains(msg, '19') thencont = 19elseif msgcontains(msg, '20') thencont = 20elseif msgcontains(msg, '21') thencont = 21elseif msgcontains(msg, '22') thencont = 22elseif msgcontains(msg, '23') thencont = 23elseif msgcontains(msg, '24') thencont = 24elseif msgcontains(msg, '25') thencont = 25elseif msgcontains(msg, '26') thencont = 26elseif msgcontains(msg, '27') thencont = 27elseif msgcontains(msg, '28') thencont = 28elseif msgcontains(msg, '29') thencont = 29elseif msgcontains(msg, '30') thencont = 30elseif msgcontains(msg, '31') thencont = 31elseif msgcontains(msg, '32') thencont = 32elseif msgcontains(msg, '33') thencont = 33elseif msgcontains(msg, '34') thencont = 34elseif msgcontains(msg, '35') thencont = 35elseif msgcontains(msg, '36') thencont = 36elseif msgcontains(msg, '37') thencont = 37elseif msgcontains(msg, '38') thencont = 38elseif msgcontains(msg, '39') thencont = 39elseif msgcontains(msg, '40') thencont = 40elseif msgcontains(msg, '41') thencont = 41elseif msgcontains(msg, '42') thencont = 42elseif msgcontains(msg, '43') thencont = 43elseif msgcontains(msg, '44') thencont = 44elseif msgcontains(msg, '45') thencont = 45elseif msgcontains(msg, '46') thencont = 46elseif msgcontains(msg, '47') thencont = 47elseif msgcontains(msg, '48') thencont = 48elseif msgcontains(msg, '49') thencont = 49elseif msgcontains(msg, '50') thencont = 50elseif msgcontains(msg, '51') thencont = 51elseif msgcontains(msg, '52') thencont = 52elseif msgcontains(msg, '53') thencont = 53elseif msgcontains(msg, '54') thencont = 54elseif msgcontains(msg, '55') thencont = 55elseif msgcontains(msg, '56') thencont = 56elseif msgcontains(msg, '57') thencont = 57elseif msgcontains(msg, '58') thencont = 58elseif msgcontains(msg, '59') thencont = 59elseif msgcontains(msg, '60') thencont = 60elseif msgcontains(msg, '61') thencont = 61elseif msgcontains(msg, '62') thencont = 62elseif msgcontains(msg, '63') thencont = 63elseif msgcontains(msg, '64') thencont = 64elseif msgcontains(msg, '65') thencont = 65elseif msgcontains(msg, '66') thencont = 66elseif msgcontains(msg, '67') thencont = 67elseif msgcontains(msg, '68') thencont = 68elseif msgcontains(msg, '69') thencont = 69elseif msgcontains(msg, '70') thencont = 70elseif msgcontains(msg, '71') thencont = 71elseif msgcontains(msg, '72') thencont = 72elseif msgcontains(msg, '73') thencont = 73elseif msgcontains(msg, '74') thencont = 74elseif msgcontains(msg, '75') thencont = 75elseif msgcontains(msg, '76') thencont = 76elseif msgcontains(msg, '77') thencont = 77elseif msgcontains(msg, '78') thencont = 78elseif msgcontains(msg, '79') thencont = 79elseif msgcontains(msg, '80') thencont = 80elseif msgcontains(msg, '81') thencont = 81elseif msgcontains(msg, '82') thencont = 82elseif msgcontains(msg, '83') thencont = 83elseif msgcontains(msg, '84') thencont = 84elseif msgcontains(msg, '85') thencont = 85elseif msgcontains(msg, '86') thencont = 86elseif msgcontains(msg, '87') thencont = 87elseif msgcontains(msg, '88') thencont = 88elseif msgcontains(msg, '89') thencont = 89elseif msgcontains(msg, '90') thencont = 90elseif msgcontains(msg, '91') thencont = 91elseif msgcontains(msg, '92') thencont = 92elseif msgcontains(msg, '93') thencont = 93elseif msgcontains(msg, '94') thencont = 94elseif msgcontains(msg, '95') thencont = 95elseif msgcontains(msg, '96') thencont = 96elseif msgcontains(msg, '97') thencont = 97elseif msgcontains(msg, '98') thencont = 98elseif msgcontains(msg, '99') thencont = 99elseif msgcontains(msg, '100') thencont = 100elsecont = 1endcprice = price * cont	selfSay('Do you want to buy ' .. cont .. ' SD for ' .. cprice .. ' golds?')  talk_start = os.clock()  end      if msgcontains(msg, 'uh') and focus == cid then	item = 2273	price = 125if msgcontains(msg, '2') thencont = 2elseif msgcontains(msg, '3') thencont = 3elseif msgcontains(msg, '4') thencont = 4elseif msgcontains(msg, '5') thencont = 5elseif msgcontains(msg, '6') thencont = 6elseif msgcontains(msg, '7') thencont = 7elseif msgcontains(msg, '8') thencont = 8elseif msgcontains(msg, '9') thencont = 9elseif msgcontains(msg, '10') thencont = 10elseif msgcontains(msg, '11') thencont = 11elseif msgcontains(msg, '12') thencont = 12elseif msgcontains(msg, '13') thencont = 13elseif msgcontains(msg, '14') thencont = 14elseif msgcontains(msg, '15') thencont = 15elseif msgcontains(msg, '16') thencont = 16elseif msgcontains(msg, '17') thencont = 17elseif msgcontains(msg, '18') thencont = 18elseif msgcontains(msg, '19') thencont = 19elseif msgcontains(msg, '20') thencont = 20elseif msgcontains(msg, '21') thencont = 21elseif msgcontains(msg, '22') thencont = 22elseif msgcontains(msg, '23') thencont = 23elseif msgcontains(msg, '24') thencont = 24elseif msgcontains(msg, '25') thencont = 25elseif msgcontains(msg, '26') thencont = 26elseif msgcontains(msg, '27') thencont = 27elseif msgcontains(msg, '28') thencont = 28elseif msgcontains(msg, '29') thencont = 29elseif msgcontains(msg, '30') thencont = 30elseif msgcontains(msg, '31') thencont = 31elseif msgcontains(msg, '32') thencont = 32elseif msgcontains(msg, '33') thencont = 33elseif msgcontains(msg, '34') thencont = 34elseif msgcontains(msg, '35') thencont = 35elseif msgcontains(msg, '36') thencont = 36elseif msgcontains(msg, '37') thencont = 37elseif msgcontains(msg, '38') thencont = 38elseif msgcontains(msg, '39') thencont = 39elseif msgcontains(msg, '40') thencont = 40elseif msgcontains(msg, '41') thencont = 41elseif msgcontains(msg, '42') thencont = 42elseif msgcontains(msg, '43') thencont = 43elseif msgcontains(msg, '44') thencont = 44elseif msgcontains(msg, '45') thencont = 45elseif msgcontains(msg, '46') thencont = 46elseif msgcontains(msg, '47') thencont = 47elseif msgcontains(msg, '48') thencont = 48elseif msgcontains(msg, '49') thencont = 49elseif msgcontains(msg, '50') thencont = 50elseif msgcontains(msg, '51') thencont = 51elseif msgcontains(msg, '52') thencont = 52elseif msgcontains(msg, '53') thencont = 53elseif msgcontains(msg, '54') thencont = 54elseif msgcontains(msg, '55') thencont = 55elseif msgcontains(msg, '56') thencont = 56elseif msgcontains(msg, '57') thencont = 57elseif msgcontains(msg, '58') thencont = 58elseif msgcontains(msg, '59') thencont = 59elseif msgcontains(msg, '60') thencont = 60elseif msgcontains(msg, '61') thencont = 61elseif msgcontains(msg, '62') thencont = 62elseif msgcontains(msg, '63') thencont = 63elseif msgcontains(msg, '64') thencont = 64elseif msgcontains(msg, '65') thencont = 65elseif msgcontains(msg, '66') thencont = 66elseif msgcontains(msg, '67') thencont = 67elseif msgcontains(msg, '68') thencont = 68elseif msgcontains(msg, '69') thencont = 69elseif msgcontains(msg, '70') thencont = 70elseif msgcontains(msg, '71') thencont = 71elseif msgcontains(msg, '72') thencont = 72elseif msgcontains(msg, '73') thencont = 73elseif msgcontains(msg, '74') thencont = 74elseif msgcontains(msg, '75') thencont = 75elseif msgcontains(msg, '76') thencont = 76elseif msgcontains(msg, '77') thencont = 77elseif msgcontains(msg, '78') thencont = 78elseif msgcontains(msg, '79') thencont = 79elseif msgcontains(msg, '80') thencont = 80elseif msgcontains(msg, '81') thencont = 81elseif msgcontains(msg, '82') thencont = 82elseif msgcontains(msg, '83') thencont = 83elseif msgcontains(msg, '84') thencont = 84elseif msgcontains(msg, '85') thencont = 85elseif msgcontains(msg, '86') thencont = 86elseif msgcontains(msg, '87') thencont = 87elseif msgcontains(msg, '88') thencont = 88elseif msgcontains(msg, '89') thencont = 89elseif msgcontains(msg, '90') thencont = 90elseif msgcontains(msg, '91') thencont = 91elseif msgcontains(msg, '92') thencont = 92elseif msgcontains(msg, '93') thencont = 93elseif msgcontains(msg, '94') thencont = 94elseif msgcontains(msg, '95') thencont = 95elseif msgcontains(msg, '96') thencont = 96elseif msgcontains(msg, '97') thencont = 97elseif msgcontains(msg, '98') thencont = 98elseif msgcontains(msg, '99') thencont = 99elseif msgcontains(msg, '100') thencont = 100elsecont = 1endcprice = price * cont	selfSay('Do you want to buy ' .. cont .. ' UH for ' .. cprice .. ' golds?')  talk_start = os.clock()  end      if msgcontains(msg, 'gfb') and focus == cid then	item = 2304	price = 50if msgcontains(msg, '2') thencont = 2elseif msgcontains(msg, '3') thencont = 3elseif msgcontains(msg, '4') thencont = 4elseif msgcontains(msg, '5') thencont = 5elseif msgcontains(msg, '6') thencont = 6elseif msgcontains(msg, '7') thencont = 7elseif msgcontains(msg, '8') thencont = 8elseif msgcontains(msg, '9') thencont = 9elseif msgcontains(msg, '10') thencont = 10elseif msgcontains(msg, '11') thencont = 11elseif msgcontains(msg, '12') thencont = 12elseif msgcontains(msg, '13') thencont = 13elseif msgcontains(msg, '14') thencont = 14elseif msgcontains(msg, '15') thencont = 15elseif msgcontains(msg, '16') thencont = 16elseif msgcontains(msg, '17') thencont = 17elseif msgcontains(msg, '18') thencont = 18elseif msgcontains(msg, '19') thencont = 19elseif msgcontains(msg, '20') thencont = 20elseif msgcontains(msg, '21') thencont = 21elseif msgcontains(msg, '22') thencont = 22elseif msgcontains(msg, '23') thencont = 23elseif msgcontains(msg, '24') thencont = 24elseif msgcontains(msg, '25') thencont = 25elseif msgcontains(msg, '26') thencont = 26elseif msgcontains(msg, '27') thencont = 27elseif msgcontains(msg, '28') thencont = 28elseif msgcontains(msg, '29') thencont = 29elseif msgcontains(msg, '30') thencont = 30elseif msgcontains(msg, '31') thencont = 31elseif msgcontains(msg, '32') thencont = 32elseif msgcontains(msg, '33') thencont = 33elseif msgcontains(msg, '34') thencont = 34elseif msgcontains(msg, '35') thencont = 35elseif msgcontains(msg, '36') thencont = 36elseif msgcontains(msg, '37') thencont = 37elseif msgcontains(msg, '38') thencont = 38elseif msgcontains(msg, '39') thencont = 39elseif msgcontains(msg, '40') thencont = 40elseif msgcontains(msg, '41') thencont = 41elseif msgcontains(msg, '42') thencont = 42elseif msgcontains(msg, '43') thencont = 43elseif msgcontains(msg, '44') thencont = 44elseif msgcontains(msg, '45') thencont = 45elseif msgcontains(msg, '46') thencont = 46elseif msgcontains(msg, '47') thencont = 47elseif msgcontains(msg, '48') thencont = 48elseif msgcontains(msg, '49') thencont = 49elseif msgcontains(msg, '50') thencont = 50elseif msgcontains(msg, '51') thencont = 51elseif msgcontains(msg, '52') thencont = 52elseif msgcontains(msg, '53') thencont = 53elseif msgcontains(msg, '54') thencont = 54elseif msgcontains(msg, '55') thencont = 55elseif msgcontains(msg, '56') thencont = 56elseif msgcontains(msg, '57') thencont = 57elseif msgcontains(msg, '58') thencont = 58elseif msgcontains(msg, '59') thencont = 59elseif msgcontains(msg, '60') thencont = 60elseif msgcontains(msg, '61') thencont = 61elseif msgcontains(msg, '62') thencont = 62elseif msgcontains(msg, '63') thencont = 63elseif msgcontains(msg, '64') thencont = 64elseif msgcontains(msg, '65') thencont = 65elseif msgcontains(msg, '66') thencont = 66elseif msgcontains(msg, '67') thencont = 67elseif msgcontains(msg, '68') thencont = 68elseif msgcontains(msg, '69') thencont = 69elseif msgcontains(msg, '70') thencont = 70elseif msgcontains(msg, '71') thencont = 71elseif msgcontains(msg, '72') thencont = 72elseif msgcontains(msg, '73') thencont = 73elseif msgcontains(msg, '74') thencont = 74elseif msgcontains(msg, '75') thencont = 75elseif msgcontains(msg, '76') thencont = 76elseif msgcontains(msg, '77') thencont = 77elseif msgcontains(msg, '78') thencont = 78elseif msgcontains(msg, '79') thencont = 79elseif msgcontains(msg, '80') thencont = 80elseif msgcontains(msg, '81') thencont = 81elseif msgcontains(msg, '82') thencont = 82elseif msgcontains(msg, '83') thencont = 83elseif msgcontains(msg, '84') thencont = 84elseif msgcontains(msg, '85') thencont = 85elseif msgcontains(msg, '86') thencont = 86elseif msgcontains(msg, '87') thencont = 87elseif msgcontains(msg, '88') thencont = 88elseif msgcontains(msg, '89') thencont = 89elseif msgcontains(msg, '90') thencont = 90elseif msgcontains(msg, '91') thencont = 91elseif msgcontains(msg, '92') thencont = 92elseif msgcontains(msg, '93') thencont = 93elseif msgcontains(msg, '94') thencont = 94elseif msgcontains(msg, '95') thencont = 95elseif msgcontains(msg, '96') thencont = 96elseif msgcontains(msg, '97') thencont = 97elseif msgcontains(msg, '98') thencont = 98elseif msgcontains(msg, '99') thencont = 99elseif msgcontains(msg, '100') thencont = 100elsecont = 1endcprice = price * cont	selfSay('Do you want to buy ' .. cont .. ' GFB for ' .. cprice .. ' golds?')  talk_start = os.clock()  end      if msgcontains(msg, 'explosion') and focus == cid then	item = 2313	price = 50if msgcontains(msg, '2') thencont = 2elseif msgcontains(msg, '3') thencont = 3elseif msgcontains(msg, '4') thencont = 4elseif msgcontains(msg, '5') thencont = 5elseif msgcontains(msg, '6') thencont = 6elseif msgcontains(msg, '7') thencont = 7elseif msgcontains(msg, '8') thencont = 8elseif msgcontains(msg, '9') thencont = 9elseif msgcontains(msg, '10') thencont = 10elseif msgcontains(msg, '11') thencont = 11elseif msgcontains(msg, '12') thencont = 12elseif msgcontains(msg, '13') thencont = 13elseif msgcontains(msg, '14') thencont = 14elseif msgcontains(msg, '15') thencont = 15elseif msgcontains(msg, '16') thencont = 16elseif msgcontains(msg, '17') thencont = 17elseif msgcontains(msg, '18') thencont = 18elseif msgcontains(msg, '19') thencont = 19elseif msgcontains(msg, '20') thencont = 20elseif msgcontains(msg, '21') thencont = 21elseif msgcontains(msg, '22') thencont = 22elseif msgcontains(msg, '23') thencont = 23elseif msgcontains(msg, '24') thencont = 24elseif msgcontains(msg, '25') thencont = 25elseif msgcontains(msg, '26') thencont = 26elseif msgcontains(msg, '27') thencont = 27elseif msgcontains(msg, '28') thencont = 28elseif msgcontains(msg, '29') thencont = 29elseif msgcontains(msg, '30') thencont = 30elseif msgcontains(msg, '31') thencont = 31elseif msgcontains(msg, '32') thencont = 32elseif msgcontains(msg, '33') thencont = 33elseif msgcontains(msg, '34') thencont = 34elseif msgcontains(msg, '35') thencont = 35elseif msgcontains(msg, '36') thencont = 36elseif msgcontains(msg, '37') thencont = 37elseif msgcontains(msg, '38') thencont = 38elseif msgcontains(msg, '39') thencont = 39elseif msgcontains(msg, '40') thencont = 40elseif msgcontains(msg, '41') thencont = 41elseif msgcontains(msg, '42') thencont = 42elseif msgcontains(msg, '43') thencont = 43elseif msgcontains(msg, '44') thencont = 44elseif msgcontains(msg, '45') thencont = 45elseif msgcontains(msg, '46') thencont = 46elseif msgcontains(msg, '47') thencont = 47elseif msgcontains(msg, '48') thencont = 48elseif msgcontains(msg, '49') thencont = 49elseif msgcontains(msg, '50') thencont = 50elseif msgcontains(msg, '51') thencont = 51elseif msgcontains(msg, '52') thencont = 52elseif msgcontains(msg, '53') thencont = 53elseif msgcontains(msg, '54') thencont = 54elseif msgcontains(msg, '55') thencont = 55elseif msgcontains(msg, '56') thencont = 56elseif msgcontains(msg, '57') thencont = 57elseif msgcontains(msg, '58') thencont = 58elseif msgcontains(msg, '59') thencont = 59elseif msgcontains(msg, '60') thencont = 60elseif msgcontains(msg, '61') thencont = 61elseif msgcontains(msg, '62') thencont = 62elseif msgcontains(msg, '63') thencont = 63elseif msgcontains(msg, '64') thencont = 64elseif msgcontains(msg, '65') thencont = 65elseif msgcontains(msg, '66') thencont = 66elseif msgcontains(msg, '67') thencont = 67elseif msgcontains(msg, '68') thencont = 68elseif msgcontains(msg, '69') thencont = 69elseif msgcontains(msg, '70') thencont = 70elseif msgcontains(msg, '71') thencont = 71elseif msgcontains(msg, '72') thencont = 72elseif msgcontains(msg, '73') thencont = 73elseif msgcontains(msg, '74') thencont = 74elseif msgcontains(msg, '75') thencont = 75elseif msgcontains(msg, '76') thencont = 76elseif msgcontains(msg, '77') thencont = 77elseif msgcontains(msg, '78') thencont = 78elseif msgcontains(msg, '79') thencont = 79elseif msgcontains(msg, '80') thencont = 80elseif msgcontains(msg, '81') thencont = 81elseif msgcontains(msg, '82') thencont = 82elseif msgcontains(msg, '83') thencont = 83elseif msgcontains(msg, '84') thencont = 84elseif msgcontains(msg, '85') thencont = 85elseif msgcontains(msg, '86') thencont = 86elseif msgcontains(msg, '87') thencont = 87elseif msgcontains(msg, '88') thencont = 88elseif msgcontains(msg, '89') thencont = 89elseif msgcontains(msg, '90') thencont = 90elseif msgcontains(msg, '91') thencont = 91elseif msgcontains(msg, '92') thencont = 92elseif msgcontains(msg, '93') thencont = 93elseif msgcontains(msg, '94') thencont = 94elseif msgcontains(msg, '95') thencont = 95elseif msgcontains(msg, '96') thencont = 96elseif msgcontains(msg, '97') thencont = 97elseif msgcontains(msg, '98') thencont = 98elseif msgcontains(msg, '99') thencont = 99elseif msgcontains(msg, '100') thencont = 100elsecont = 1endcprice = price * cont	selfSay('Do you want to buy ' .. cont .. ' Explosion for ' .. cprice .. ' golds?')  talk_start = os.clock()  end  if string.find(msg, '(%a*)bye(%a*)') and focus == cid and getDistanceToCreature(cid) < 3 then 	 selfSay('Bye ' .. creatureGetName(cid) .. '.') 	 focus = 0 	 talk_start = 0  endif cont > 0 then	if string.find(msg, '(%a*)yes(%a*)') and focus == cid then  buy(cid,item,cont,cprice)	talk_star = os.clock()	cont = 0	elseif string.find(msg, '(%a*)no(%a*)') and focus == cid then	selfSay('Okay. But buy more.')	talk_star = os.clock()	cont = 0 end end end function onCreatureChangeOutfit(creature) end function onThink()  if (os.clock() - talk_start) > 30 then 	 if focus > 0 then    selfSay('Next now!!') 	 end    focus = 0  endif focus == 0 thencx, cy, cz = selfGetPosition()randmove = math.random(1,20)if randmove == 1 thennx = cx + 1endif randmove == 2 thennx = cx - 1endif randmove == 3 thenny = cy + 1endif randmove == 4 thenny = cy - 1endif randmove >= 5 thennx = cxny = cyendmoveToPosition(nx, ny, cz)endend

 

Link para o comentário
Compartilhar em outros sites

  • 10 months later...

Muito legal o NPC cara! :laughing:

Vou pegar imprestado ok? Soh q não vou usar para Runas, vou usar pra vende Comida... (de runas eu ja tenho) VLW!

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...