AdrianMaster
Dołączył: 23 Sie 2006
Posty: 3
Przeczytał: 0 tematów
Ostrzeżeń: 0/5 Skąd: Olsztyn
|
Wysłany: Śro 13:27, 23 Sie 2006 Temat postu: Naloty do mapki yureza |
|
|
Linijki dam na koncu.
1.Demon
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 Demons have been spotted near the city!",23)
print("Number of creatures summoned:",summonedtotal)
end
return 1
end
|
2.Dragon
W data/actions/scripts dodajemy pliczek o nazwie dragon i wklejamy 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 Dragons have been spotted near the city!",23)
print("Number of creatures summoned:",summonedtotal)
end
return 1
end
|
3.Luadzie
W data/actions/scripts dodajemy plik o nazwie ludzie i wklejamy do niego.
Cytat: |
--Invasion script
-- By Tworn
--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 Dragons have been spotted near the city!",23)
print("Number of creatures summoned:",summonedtotal)
end
return 1
end
|
W data/actions/actions dodajemy linijki pod invasion to jest na samym dole prawie ;P
Cytat: |
<action itemid="2493" script="demon.lua" /> |
Cytat: |
<action itemid="2492" script="dragon.lua" /> |
Cytat: |
<action itemid="2195" script="ludzie.lua" /> |
Zeby zrobic nalot demonow klikamy na demon helmet.
Zeby na nalot dragow na dragon scale mail.
Zeby nalot ludzi na bohy.
Potwory pojawiajol sie kolo Great Street.
Mam nadzieje ze sie podoba.
~~!Pozdro!~~
Post został pochwalony 0 razy
|
|