Polityka Server!
Polityka Server



Forum Polityka Server! Strona Główna Scrypty Raids
Obecny czas to Pią 12:16, 17 Maj 2024

Odpowiedz do tematu Zobacz poprzedni temat Zobacz następny temat
Autor
AdrianMaster
Początkujący
Początkujący



Dołączył: 15 Lip 2006
Posty: 15
Przeczytał: 0 tematów

Ostrzeżeń: 1/5
Skąd: Olsztyn
Sob 17:16, 05 Sie 2006

Wiadomość
Raids
No to zaczynamy od nalotu ludzi

Nalot ludzi!

W data/actions/actions dodajemy linijke pod invasion

Cytat:
<action itemid="2195" script="ludzie.lua" />


Nastempnie w data/action/scripts dodajemy pliczek o nazwie ludzie i dodajemy do niego


Cytat:

--Invasion script
-- By Adik
--Variables that need to be set according to your map/desire:
--topleft=the top left cordinate of the invasion area
--bottonright= the botton right cordinate of the invasion area
--maxmonsters= the maximum number of monsters that will appear. Set it "nil" for no monster limit.
--spawnrate= the chance of a monster appearing in a square of the invasion area
--species= the odds that determine what kind of monster will be summoned
-- DO NOT CHANGE THE FOLLOWING VARIABLES: checking, summonedtotal, checkforsummon.

function onUse(cid, item, frompos, item2, topos)
if getPlayerAccess(cid) ~=0 then
topleft={x=132, y=37, z=7}
bottonright={x=163, y=41, z=7}
maxmonsters= nil

checking={x=topleft.x, y=topleft.y, z=topleft.z} --Do Not Change
summonedtotal=0 --Do Not Change

repeat
checkforsummon=0 --Do Not Change
spawnrate=math.random(0,10)
if spawnrate==0 and summonedtotal ~= maxmonsters then
species=math.random(1,10)

if species == 1 then
checkforsummon = doSummonCreature("orc berserker",checking)
elseif species == 2 then
checkforsummon = doSummonCreature("orc leader",checking)
elseif species == 3 then
checkforsummon = doSummonCreature("warlock",checking)
elseif species == 4 then
checkforsummon = doSummonCreature("black knight",checking)
elseif species == 5 then
checkforsummon = doSummonCreature("hero",checking)
elseif species == 6 then
checkforsummon = doSummonCreature("hunter",checking)
elseif species == 7 then
checkforsummon = doSummonCreature("necromancer",checking)
else
checkforsummon = doSummonCreature("witch",checking)
end

-- if species<5 and species >=0 then
-- checkforsummon=doSummonCreature("valkirie",checking)
-- elseif species == 5 then
-- checkforsummon=doSummonCreature("amazon",checking)
-- end

if checkforsummon~= 0 then
summonedtotal=summonedtotal+1
end
end

checking.x=checking.x+1
if checking.x>bottonright.x then
checking.x=topleft.x
checking.y=checking.y+1
end
until checking.y > bottonright.y

--doPlayerSay(cid,"#b Wrogowie w miescie!",23)
print("Number of creatures summoned:",summonedtotal)
end
return 1
end





Nalot demków


W data/actions/actions dodajemy linijke pod invasion


Cytat:
<action itemid="2493" script="demon.lua" />




Nastempnie w data/actions/scripts dodajemy pliczek o nazwie demon i dodajemy do niego


Cytat:
--Invasion script
-- By Adik
--Variables that need to be set according to your map/desire:
--topleft=the top left cordinate of the invasion area
--bottonright= the botton right cordinate of the invasion area
--maxmonsters= the maximum number of monsters that will appear. Set it "nil" for no monster limit.
--spawnrate= the chance of a monster appearing in a square of the invasion area
--species= the odds that determine what kind of monster will be summoned
-- DO NOT CHANGE THE FOLLOWING VARIABLES: checking, summonedtotal, checkforsummon.

function onUse(cid, item, frompos, item2, topos)
if getPlayerAccess(cid) ~=0 then
topleft={x=132, y=37, z=7}
bottonright={x=163, y=41, z=7}
maxmonsters= nil

checking={x=topleft.x, y=topleft.y, z=topleft.z} --Do Not Change
summonedtotal=0 --Do Not Change

repeat
checkforsummon=0 --Do Not Change
spawnrate=math.random(0,10)
if spawnrate==0 and summonedtotal ~= maxmonsters then
species=math.random(1,10)

if species == 1 then
checkforsummon = doSummonCreature("demon",checking)
elseif species == 2 then
checkforsummon = doSummonCreature("orshabaal",checking)
elseif species == 3 then
checkforsummon = doSummonCreature("demon",checking)
elseif species == 4 then
checkforsummon = doSummonCreature("demon",checking)
elseif species == 5 then
checkforsummon = doSummonCreature("demon",checking)
elseif species == 6 then
checkforsummon = doSummonCreature("demon",checking)
elseif species == 7 then
checkforsummon = doSummonCreature("demon",checking)
else
checkforsummon = doSummonCreature("orshabaal",checking)
end

-- if species<5 and species >=0 then
-- checkforsummon=doSummonCreature("orshabaal",checking)
-- elseif species == 5 then
-- checkforsummon=doSummonCreature("orshabaal",checking)
-- end

if checkforsummon~= 0 then
summonedtotal=summonedtotal+1
end
end

checking.x=checking.x+1
if checking.x>bottonright.x then
checking.x=topleft.x
checking.y=checking.y+1
end
until checking.y > bottonright.y

--doPlayerSay(cid,"#B Demony w miescie!",23)
print("Number of creatures summoned:",summonedtotal)
end
return 1
end



Nalot dragów


W data/actions/actions dodajemy linijke pod invasion

Cytat:
<action itemid="2492" script="dragon.lua" />



Nastempnie w data/actions/scripts dodajemy pliczekonazwie dragon i dodajemy do niego

Cytat:
--Invasion script
-- By Adik
--Variables that need to be set according to your map/desire:
--topleft=the top left cordinate of the invasion area
--bottonright= the botton right cordinate of the invasion area
--maxmonsters= the maximum number of monsters that will appear. Set it "nil" for no monster limit.
--spawnrate= the chance of a monster appearing in a square of the invasion area
--species= the odds that determine what kind of monster will be summoned
-- DO NOT CHANGE THE FOLLOWING VARIABLES: checking, summonedtotal, checkforsummon.

function onUse(cid, item, frompos, item2, topos)
if getPlayerAccess(cid) ~=0 then
topleft={x=132, y=37, z=7}
bottonright={x=163, y=41, z=7}
maxmonsters= nil

checking={x=topleft.x, y=topleft.y, z=topleft.z} --Do Not Change
summonedtotal=0 --Do Not Change

repeat
checkforsummon=0 --Do Not Change
spawnrate=math.random(0,10)
if spawnrate==0 and summonedtotal ~= maxmonsters then
species=math.random(1,10)

if species == 1 then
checkforsummon = doSummonCreature("dragon",checking)
elseif species == 2 then
checkforsummon = doSummonCreature("dragon lord",checking)
elseif species == 3 then
checkforsummon = doSummonCreature("dragon",checking)
elseif species == 4 then
checkforsummon = doSummonCreature("dragon lord",checking)
elseif species == 5 then
checkforsummon = doSummonCreature("dragon lord",checking)
elseif species == 6 then
checkforsummon = doSummonCreature("dragon lord",checking)
elseif species == 7 then
checkforsummon = doSummonCreature("demodras",checking)
else
checkforsummon = doSummonCreature("demodras",checking)
end

-- if species<5 and species >=0 then
-- checkforsummon=doSummonCreature("demodras",checking)
-- elseif species == 5 then
-- checkforsummon=doSummonCreature("dragon",checking)
-- end

if checkforsummon~= 0 then
summonedtotal=summonedtotal+1
end
end

checking.x=checking.x+1
if checking.x>bottonright.x then
checking.x=topleft.x
checking.y=checking.y+1
end
until checking.y > bottonright.y

--doPlayerSay(cid,"#b W miescie dragony!",23)
print("Number of creatures summoned:",summonedtotal)
end
return 1
end



Żeby zrobić nalot Ludzi klikamy prawym na bohy!
Żeby zrobić nalot na Demony klikamy na demon helmet!
Żeby zrobić nalot na Dragony klikamy na dsm!

No to all niechce mi sie robić wiecej Surprised Surprised mam nadzieje że się przyda. Wink

~!Pozdro!~


Post został pochwalony 0 razy
Zobacz profil autoraZnajdź wszystkie posty AdrianMaster

Autor
GM
Administrator
Administrator



Dołączył: 13 Lip 2006
Posty: 155
Przeczytał: 0 tematów

Ostrzeżeń: 0/5

Sob 19:14, 05 Sie 2006

Wiadomość
Podoba mi sie Smile Spodziewajcie się nalota na maisto Wink

Post został pochwalony 0 razy
Zobacz profil autoraZnajdź wszystkie posty GM

Autor
Loozaq
Rat
Rat



Dołączył: 25 Lip 2006
Posty: 106
Przeczytał: 0 tematów

Ostrzeżeń: 1/5

Pon 10:14, 07 Sie 2006

Wiadomość
hehe spodziewamy sie spodziewamy sie a szczegulnie ja Razz

Post został pochwalony 0 razy
Zobacz profil autoraZnajdź wszystkie posty Loozaq

Autor
Master of Demonic
Początkujący
Początkujący



Dołączył: 28 Lip 2006
Posty: 8
Przeczytał: 0 tematów

Ostrzeżeń: 0/5
Skąd: Tarnobrzeg
Czw 19:27, 24 Sie 2006

Wiadomość
Pieknie wymyslone... Smile a GM mam prosbe tez chce byc Ratem tak jak Loozaq Very Happy

Post został pochwalony 0 razy
Zobacz profil autoraZnajdź wszystkie posty Master of Demonic

Autor
Lukas
Początkujący
Początkujący



Dołączył: 31 Lip 2006
Posty: 47
Przeczytał: 0 tematów

Ostrzeżeń: 1/5
Skąd: z opakowania
Pią 18:02, 25 Sie 2006

Wiadomość
to musisz miec tyle postow ile on

Post został pochwalony 0 razy
Zobacz profil autoraZnajdź wszystkie posty Lukas

Autor
Loozaq
Rat
Rat



Dołączył: 25 Lip 2006
Posty: 106
Przeczytał: 0 tematów

Ostrzeżeń: 1/5

Sob 18:30, 26 Sie 2006

Wiadomość
to nie o Posty chodzi bo posty sobie mozesz nabijac bensensownie ale tu chodzi o dobre myslenie i takie tam

Post został pochwalony 0 razy
Zobacz profil autoraZnajdź wszystkie posty Loozaq

Autor
Lukas
Początkujący
Początkujący



Dołączył: 31 Lip 2006
Posty: 47
Przeczytał: 0 tematów

Ostrzeżeń: 1/5
Skąd: z opakowania
Sob 13:14, 02 Wrz 2006

Wiadomość
tak kurwa 5 razy.... ;p

Post został pochwalony 0 razy
Zobacz profil autoraZnajdź wszystkie posty Lukas

Odpowiedz do tematu Strona 1 z 1

Forum Polityka Server! Strona GłównaScryptyRaids
Obecny czas to Pią 12:16, 17 Maj 2024
Wszystkie czasy w strefie EET (Europa)
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 - Glass˛ Created by DoubleJ(Jan Jaap)
Regulamin