Siemka Zrobi?em All Jak Mowiles Ale Pokazuje Mi Ze Cos Jest Zle-Sprawdz Moze Cos Zle Napisalem:
focus = 0
talk_start = 0
target = 0
following = false
attacking = false
ox = 145
oy = 50
oz = 7
max = 5
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)
msg = string.lower(msg)
if ((string.find(msg, '(%a*)hi(%a*)')) and (focus == 0)) and getDistanceToCreature(cid) < 3 then
selfSay('Hello, ' .. creatureGetName(cid) .. '! I sell joes jersey (20000000 gp), joes skirt (20000000 gp) Blessed Shield (200000 gp) MagicLongsword (100000 gp) Throwing Joes (20000000 gp) Golden Mace (100000 gp) Joe Helm (20000000 gp) Great Axe (100000 gp) Gods Spear (1000000 gp) Soft Boots (20000000 gp) Crystal Mace (50000 gp) Knightmare (30000000 gp)')
focus = cid
talk_start = os.clock()
elseif string.find(msg, '(%a*)hi(%a*)') and (focus ~= cid) and getDistanceToCreature(cid) < 3 then
selfSay('Sorry, ' .. creatureGetName(cid) .. '! I talk to you in a minute.')
elseif msgcontains(msg, 'joes jersey') and focus == cid then
buy(cid,2656,1,20000000)
talk_start = os.clock()lseif msgcontains(msg, 'Joe Helm') and focus == cid then
buy(cid,2665,1,20000000)lseif msgcontains(msg, 'Joes Skirt') and focus == cid then
buy(cid,3983,1,20000000)lseif msgcontains(msg, 'Blessed Shield') and focus == cid then
buy(cid,2523,1,1000000)lseif msgcontains(msg, 'Magiclongsword') and focus == cid then
buy(cid,2390,1,1000000)lseif msgcontains(msg, 'Throwing Joes') and focus == cid then
buy(cid,3966,1,20000000)lseif msgcontains(msg, 'Golden Mace') and focus == cid then
buy(cid,2437,1,1000000)lseif msgcontains(msg, 'Great Axe') and focus == cid then
buy(cid,2415,1,1000000)lseif msgcontains(msg, 'Gods Spear') and focus == cid then
buy(cid,3965,1,1000000)lseif msgcontains(msg, 'Soft Boots') and focus == cid then
buy(cid,2640,1,15000000)lseif msgcontains(msg, 'Knightmare') and focus == cid then
buy(cid,3963,1,20000000)
talk_start = os.clock()
talk_start = os.clock()
talk_start = os.clock()
talk_start = os.clock()
talk_start = os.clock()
talk_start = os.clock()
talk_start = os.clock()
talk_start = os.clock()
talk_start = os.clock()
talk_start = os.clock()
elseif string.find(msg, '(%a*)bye(%a*)') and focus == cid and getDistanceToCreature(cid) < 3 then
selfSay('Good bye, ' .. creatureGetName(cid) .. '!')
focus = 0
talk_start = 0
end
end
function onCreatureChangeOutfit(creature)
end
function onThink()
if (os.clock() - talk_start) > 30 then
if focus > 0 then
selfSay('Next Please...')
A Jak Odpalam Silnik To Pisze Takie Cos:
Przybliz Zdjecie (Kliknij Na Nie xD)