Ir para conteúdo

Invasion


CorpsCool

Posts Recomendados

Ai galera peguei um aciton que faz Invasion no serve Yurots num tentei en outro serve ainda mais deve dar sim pq é action la vai o codigos:

 

function onUse(cid, item, frompos, item2, topos)	if getPlayerAccess(cid) ~=0 then  topleft={x=135, y=34, z=7}  bottonright={x=140, y=60, 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("orc rider",checking)    elseif species == 4 then   	 checkforsummon = doSummonCreature("orc shaman",checking)    elseif species == 5 then   	 checkforsummon = doSummonCreature("orc spearman",checking)    elseif species == 6 then   	 checkforsummon = doSummonCreature("orc warlord",checking)    elseif species == 7 then   	 checkforsummon = doSummonCreature("orc warrior",checking)    else   	 checkforsummon = doSummonCreature("orc",checking)    end    -- if species<5 and species >=0 then   	 -- checkforsummon=doSummonCreature("dragon",checking)    -- elseif species == 5 then   	 -- checkforsummon=doSummonCreature("dragon lord",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 1end

 

e no Actions.xml botem

 

<action itemid="2931" script="invasion.lua" />

 

depois entrem cum gm e f~ça o item 2931 clike nele e deu vai vim a imvasaum

é isso ai esperaum que gostem

Link para o comentário
Compartilhar em outros sites

  • 2 years later...
  • 1 month later...
×
×
  • Criar Novo...