Forum OTPL -- The best OTS Forum in the World Strona Główna OTPL -- The best OTS Forum in the World
OTPL -- The best OTS Forum in the World
 
 FAQFAQ   SzukajSzukaj   UżytkownicyUżytkownicy   GrupyGrupy   GalerieGalerie   RejestracjaRejestracja 
 ProfilProfil   Zaloguj się, by sprawdzić wiadomościZaloguj się, by sprawdzić wiadomości   ZalogujZaloguj 

gotowa skrypta

 
Napisz nowy temat   Odpowiedz do tematu    Forum OTPL -- The best OTS Forum in the World Strona Główna -> NPCe i Potwory
Zobacz poprzedni temat :: Zobacz następny temat  
Autor Wiadomość
Geho
Gość






PostWysłany: Pon 18:56, 13 Lis 2006    Temat postu: gotowa skrypta

chcecie fajnom skrypte na eq sellera

wchodzimy w ots/data/npc

tworzymy tam plik eq seller

<?xml version="1.0"?>
<npc name="eq seller" script="data/npc/scripts/eq.lua" access="3">
<look type="57" head="20" body="30" legs="40" feet="50" corpse="3128"/>
</npc>
nastepnie w ots/data/npc/scripts

tworzymy plik eq

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('Cya.')
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('HeyaH ' .. creatureGetName(cid) .. '! Sprzedam armors, shields, weapons, legs, boots, helmets.')
focus = cid
talk_start = os.clock()

elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
selfSay('Sorka, ' .. creatureGetName(cid) .. '! Prowadze rozmowe z innym kims.') elseif focus == cid then
talk_start = os.clock()

if msgcontains(msg, 'noble armor') then
buy(cid,2486,1,20000)
elseif msgcontains(msg, 'knight armor') then
buy(cid,2476,1,50000)
elseif msgcontains(msg, 'blue robe') then
buy(cid,2656,1,50000)
elseif msgcontains(msg, 'crown armor') then
buy(cid,2487,1,120000)
elseif msgcontains(msg, 'golden armor') then
buy(cid,2466,1,350000)
elseif msgcontains(msg, 'dragon scale mail') then
buy(cid,2492,1,500000)
elseif msgcontains(msg, 'demon armor') then
buy(cid,2494,1,750000)
elseif msgcontains(msg, 'magic plate armor') then
buy(cid,2472,1,1000000)
elseif msgcontains(msg, 'armors') then
selfSay('I sell plate armor, noble armor, knight armor, blue robe, crown armor, golden armor, dragon scale mail, demon armor and magic plate armor.')

elseif msgcontains(msg, 'steel boots') and focus == cid then
buy(cid,2645,1,1000000)
elseif msgcontains(msg, 'boh') or msgcontains(msg, 'boots of haste') and focus == cid then
buy(cid,2195,1,100000)
elseif msgcontains(msg, 'boots') then
selfSay('Sprzedam steel boots and boots of haste.')

elseif msgcontains(msg, 'crown helmet') then
buy(cid,2491,1,10000)
elseif msgcontains(msg, 'crusader helmet') then
buy(cid,2497,1,40000)
elseif msgcontains(msg, 'warrior helmet') then
buy(cid,2475,1,30000)
elseif msgcontains(msg, 'royal helmet') then
buy(cid,2498,1,100000)
elseif msgcontains(msg, 'demon helmet') then
buy(cid,2493,1,200000)
elseif msgcontains(msg, 'golden helmet') then
buy(cid,2471,1,1000000)
elseif msgcontains(msg, 'helmets') then
selfSay('Sprzedam crown helemt, crusader helmet, warrior helmet, royal helmet, demon helmet, golden helmet..')

elseif msgcontains(msg, 'dragon shield') then
buy(cid,2516,1,30000)
elseif msgcontains(msg, 'tower shield') then
buy(cid,2528,1,10000)
elseif msgcontains(msg, 'crown shield') then
buy(cid,2519,1,60000)
elseif msgcontains(msg, 'vampire shield') then
buy(cid,2534,1,13000)
elseif msgcontains(msg, 'amazon shield') then
buy(cid,2537,1,40000)
elseif msgcontains(msg, 'demon shield') then
buy(cid,2520,1,200000)
elseif msgcontains(msg, 'mastermind shield') then
buy(cid,2514,1,400000)
elseif msgcontains(msg, 'great shield') then
buy(cid,2522,1,600000)
elseif msgcontains(msg, 'blessed shield') then
buy(cid,2523,1,900000)
elseif msgcontains(msg, 'shields') then
selfSay('Sprzedaml dragon shield, tower shield, crown shield, vampire shield, amazon shield, demon shield, mastermind shield, great shield and blessed shield.')

elseif msgcontains(msg, 'skull staf') then
buy(cid,2436,1,50000)
elseif msgcontains(msg, 'golden mace') then
buy(cid,2437,1,500000)
elseif msgcontains(msg, 'hammer of wrath') then
buy(cid,2444,1,750000)
elseif msgcontains(msg, 'thunder hammer') then
buy(cid,2421,1,1000000)
elseif msgcontains(msg, 'fire axe') then
buy(cid,2432,1,10000)
elseif msgcontains(msg, 'stonecutter axe') then
buy(cid,2431,1,950000)
elseif msgcontains(msg, 'fire sword') then
buy(cid,2392,1,30000)
elseif msgcontains(msg, 'bright sword') then
buy(cid,2407,1,200000)
elseif msgcontains(msg, 'giant sword') then
buy(cid,2393,1,200000)
elseif msgcontains(msg, 'magic sword') then
buy(cid,2400,1,850000)
elseif msgcontains(msg, 'warlord sword') then
buy(cid,2408,1,900000)
elseif msgcontains(msg, 'great axe') then
buy(cid,2415,1,1000000)
elseif msgcontains(msg, 'guardian halberd') then
buy(cid,2427,1,550000)
elseif msgcontains(msg, 'stonecutter axe') then
buy(cid,2431,1,1000000)
elseif msgcontains(msg, 'weapons') then
selfSay('Sprzedam fire sword, fire axe, skull staf, daramian mace, thunder hammer, guardian halberd, golden mace, great axe, warlord sword, hammer of wrath, bright sword, giant sword and magic sword.')

elseif msgcontains(msg, 'crown legs') then
buy(cid,2488,1,200000)
elseif msgcontains(msg, 'golden legs') then
buy(cid,2470,1,500000)
elseif msgcontains(msg, 'demon legs') then
buy(cid,2495,1,500000)
elseif msgcontains(msg, 'dragon scale legs') then
buy(cid,2469,1,850000)
elseif msgcontains(msg, 'legs') then
selfSay('Sprzedam plate legs,crown legs, golden legs, demon legs and dragon scale legs.')

elseif string.find(msg, '(%a*)bye(%a*)') and getDistanceToCreature(cid) < 4 then
selfSay('Cya, ' .. 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('Nastepny!')
end
focus = 0
end
if focus ~= 0 then
if getDistanceToCreature(focus) > 5 then
selfSay('Cya.')
focus = 0
end
end
end
Powrót do góry
Zobacz poprzedni temat :: Zobacz następny temat  
Autor Wiadomość
Geho
Gość






PostWysłany: Pon 18:58, 13 Lis 2006    Temat postu:

zapomnialem dac gg9012700 moge dac wiele inych skrypt
Powrót do góry
Zobacz poprzedni temat :: Zobacz następny temat  
Autor Wiadomość
Gość







PostWysłany: Pon 19:07, 13 Lis 2006    Temat postu: Re: gotowa skrypta

Geho napisał:
chcecie fajnom skrypte na eq sellera

wchodzimy w ots/data/npc

tworzymy tam plik eq seller

<?xml version="1.0"?>
<npc name="eq seller" script="data/npc/scripts/eq.lua" access="3">
<look type="57" head="20" body="30" legs="40" feet="50" corpse="3128"/>
</npc>
nastepnie w ots/data/npc/scripts

tworzymy plik eq


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('Cya.')
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('HeyaH ' .. creatureGetName(cid) .. '! Sprzedam armors, shields, weapons, legs, boots, helmets.')
focus = cid
talk_start = os.clock()

elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
selfSay('Sorka, ' .. creatureGetName(cid) .. '! Prowadze rozmowe z innym kims.') elseif focus == cid then
talk_start = os.clock()

if msgcontains(msg, 'noble armor') then
buy(cid,2486,1,20000)
elseif msgcontains(msg, 'knight armor') then
buy(cid,2476,1,50000)
elseif msgcontains(msg, 'blue robe') then
buy(cid,2656,1,50000)
elseif msgcontains(msg, 'crown armor') then
buy(cid,2487,1,120000)
elseif msgcontains(msg, 'golden armor') then
buy(cid,2466,1,350000)
elseif msgcontains(msg, 'dragon scale mail') then
buy(cid,2492,1,500000)
elseif msgcontains(msg, 'demon armor') then
buy(cid,2494,1,750000)
elseif msgcontains(msg, 'magic plate armor') then
buy(cid,2472,1,1000000)
elseif msgcontains(msg, 'armors') then
selfSay('I sell plate armor, noble armor, knight armor, blue robe, crown armor, golden armor, dragon scale mail, demon armor and magic plate armor.')

elseif msgcontains(msg, 'steel boots') and focus == cid then
buy(cid,2645,1,1000000)
elseif msgcontains(msg, 'boh') or msgcontains(msg, 'boots of haste') and focus == cid then
buy(cid,2195,1,100000)
elseif msgcontains(msg, 'boots') then
selfSay('Sprzedam steel boots and boots of haste.')

elseif msgcontains(msg, 'crown helmet') then
buy(cid,2491,1,10000)
elseif msgcontains(msg, 'crusader helmet') then
buy(cid,2497,1,40000)
elseif msgcontains(msg, 'warrior helmet') then
buy(cid,2475,1,30000)
elseif msgcontains(msg, 'royal helmet') then
buy(cid,2498,1,100000)
elseif msgcontains(msg, 'demon helmet') then
buy(cid,2493,1,200000)
elseif msgcontains(msg, 'golden helmet') then
buy(cid,2471,1,1000000)
elseif msgcontains(msg, 'helmets') then
selfSay('Sprzedam crown helemt, crusader helmet, warrior helmet, royal helmet, demon helmet, golden helmet..')

elseif msgcontains(msg, 'dragon shield') then
buy(cid,2516,1,30000)
elseif msgcontains(msg, 'tower shield') then
buy(cid,2528,1,10000)
elseif msgcontains(msg, 'crown shield') then
buy(cid,2519,1,60000)
elseif msgcontains(msg, 'vampire shield') then
buy(cid,2534,1,13000)
elseif msgcontains(msg, 'amazon shield') then
buy(cid,2537,1,40000)
elseif msgcontains(msg, 'demon shield') then
buy(cid,2520,1,200000)
elseif msgcontains(msg, 'mastermind shield') then
buy(cid,2514,1,400000)
elseif msgcontains(msg, 'great shield') then
buy(cid,2522,1,600000)
elseif msgcontains(msg, 'blessed shield') then
buy(cid,2523,1,900000)
elseif msgcontains(msg, 'shields') then
selfSay('Sprzedaml dragon shield, tower shield, crown shield, vampire shield, amazon shield, demon shield, mastermind shield, great shield and blessed shield.')

elseif msgcontains(msg, 'skull staf') then
buy(cid,2436,1,50000)
elseif msgcontains(msg, 'golden mace') then
buy(cid,2437,1,500000)
elseif msgcontains(msg, 'hammer of wrath') then
buy(cid,2444,1,750000)
elseif msgcontains(msg, 'thunder hammer') then
buy(cid,2421,1,1000000)
elseif msgcontains(msg, 'fire axe') then
buy(cid,2432,1,10000)
elseif msgcontains(msg, 'stonecutter axe') then
buy(cid,2431,1,950000)
elseif msgcontains(msg, 'fire sword') then
buy(cid,2392,1,30000)
elseif msgcontains(msg, 'bright sword') then
buy(cid,2407,1,200000)
elseif msgcontains(msg, 'giant sword') then
buy(cid,2393,1,200000)
elseif msgcontains(msg, 'magic sword') then
buy(cid,2400,1,850000)
elseif msgcontains(msg, 'warlord sword') then
buy(cid,2408,1,900000)
elseif msgcontains(msg, 'great axe') then
buy(cid,2415,1,1000000)
elseif msgcontains(msg, 'guardian halberd') then
buy(cid,2427,1,550000)
elseif msgcontains(msg, 'stonecutter axe') then
buy(cid,2431,1,1000000)
elseif msgcontains(msg, 'weapons') then
selfSay('Sprzedam fire sword, fire axe, skull staf, daramian mace, thunder hammer, guardian halberd, golden mace, great axe, warlord sword, hammer of wrath, bright sword, giant sword and magic sword.')

elseif msgcontains(msg, 'crown legs') then
buy(cid,2488,1,200000)
elseif msgcontains(msg, 'golden legs') then
buy(cid,2470,1,500000)
elseif msgcontains(msg, 'demon legs') then
buy(cid,2495,1,500000)
elseif msgcontains(msg, 'dragon scale legs') then
buy(cid,2469,1,850000)
elseif msgcontains(msg, 'legs') then
selfSay('Sprzedam plate legs,crown legs, golden legs, demon legs and dragon scale legs.')

elseif string.find(msg, '(%a*)bye(%a*)') and getDistanceToCreature(cid) < 4 then
selfSay('Cya, ' .. 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('Nastepny!')
end
focus = 0
end
if focus ~= 0 then
if getDistanceToCreature(focus) > 5 then
selfSay('Cya.')
focus = 0
end
end
end



potem wchodzimy w world i tam dajemy linijke eq seller i jego pozycje
Powrót do góry
Zobacz poprzedni temat :: Zobacz następny temat  
Autor Wiadomość
Gość







PostWysłany: Nie 2:09, 01 Kwi 2007    Temat postu:

Catherine Zeta Jone Throatjob!
[link widoczny dla zalogowanych]
Powrót do góry
Wyświetl posty z ostatnich:   
Napisz nowy temat   Odpowiedz do tematu    Forum OTPL -- The best OTS Forum in the World Strona Główna -> NPCe i Potwory Wszystkie czasy w strefie EET (Europa)
Strona 1 z 1

 
Skocz do:  
Możesz pisać nowe tematy
Możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach

fora.pl - załóż własne forum dyskusyjne za darmo
Powered by phpBB © 2001, 2005 phpBB Group
Regulamin