
Gustavo BRX
Membro
-
Registro em
-
Última visita
Histórico de Curtidas
-
Gustavo BRX recebeu reputação de KotZletY em [PEDIDO]Npç Ajudantevoce é muito burro fica sem ajuda ai
-
Gustavo BRX recebeu reputação de ZoR em Hospital Vip (Free)Data/creaturescripts/
Hospital.lua
function onLogin(cid) if getPlayerStorageValue(cid, 122000) == 1 and getPlayerPremiumDays(cid) >= 1 then location = { --Posição do hospital vip {x=2580, y=1815, z=7}, {x=2580, y=1811, z=7}, {x=2570, y=1818, z=7}, {x=2580, y=1807, z=7}, {x=2571, y=1821, z=7}, {x=2571, y=1825, z=7}, {x=2571, y=1829, z=7}, {x=2571, y=1833, z=7}, {x=2579, y=1830, z=7}, {x=2580, y=1833, z=7}, {x=2567, y=1818, z=7}, {x=2564, y=1818, z=7}, {x=2564, y=1807, z=7}, } setPlayerStorageValue(cid, 122000, 0) doTeleportThing(cid, location[math.random(#location)]) else location = { --Posição do hospital free {x=2580, y=1815, z=7}, {x=2580, y=1811, z=7}, {x=2570, y=1818, z=7}, } setPlayerStorageValue(cid, 122000, 0) doTeleportThing(cid, location[math.random(#location)]) end end
hospitaldeath.lua
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if isPlayer(cid) == true then setPlayerStorageValue(cid, 122000, 1) return true end return true end
creaturescripts.xml
<event type="preparedeath" name="hospitaldeath" event="script" value="hospitaldeath.lua"/> <event type="login" name="Hospital" event="script" value="hospital.lua"/>
@ZikaLord testa!
-
Gustavo BRX recebeu reputação de Fiiiiinz em SIMPLES AUMENTAR STORAGE?setPlayerStorageValue(cid, 1, getPlayerStorageValue(cid, 1)+1)
-
Gustavo BRX recebeu reputação de ZoR em (Resolvido)Colocar posiçao no scriptlocal combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -200.2, 1, -250.2, 1) function onCastSpell(cid, var) local pos1 = {x=getThingPosition(getCreatureTarget(cid)).x+2, y=getThingPosition(getCreatureTarget(cid)).y+3, z=getThingPosition(getCreatureTarget(cid)).z} local pos2 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z} local t1 = 1 local t2 = 50 addEvent(doSendMagicEffect,t1,pos1,363) addEvent(doSendMagicEffect,t2,pos2,303) return doCombat(cid, combat, var) end
-
Gustavo BRX recebeu reputação de ZoR em (Resolvido)Colocar posiçao no scriptCodigo arrumado, desculpe mudei nome da variavel e nao troquei a de baixo codigo arrumado teste-o.
-
Gustavo BRX recebeu reputação de ZoR em (Resolvido)Colocar posiçao no scriptlocal combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -200.2, 1, -250.2, 1) function onCastSpell(cid, var) local pos1 = {x=getThingPosition(getCreatureTarget(cid)).x+2, y=getThingPosition(getCreatureTarget(cid)).y+3, z=getThingPosition(getCreatureTarget(cid)).z} local pos2 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z} addEvent(function() doSendMagicEffect(pos1, 363) doSendMagicEffect(pos2, 303) end, 0) return doCombat(cid, combat, var) end
o CombatParam COMBAT_PARAM_EFFECT envia o effect que voce colocou sem mecher na sua posição ...