Jump to content

popld

Members
  • Posts

    177
  • Credits

  • Joined

  • Last visited

    Never
  • Feedback

    0%

Posts posted by popld

  1. Exw kanei l2j server epilogue kai 8elw na fixarw ta siege, 2 to savvato 1 thn kuriakh (wra ktlp no prob)

    NAI omws einai 9 ta kastra kai to official einai ka8e 2 eudomades , kai ka8e deuterh ebdomada ginontai 6 anti gia 3 siege.

    Pws mporw na kanw na ginetai se ka8e kastro siege ka8e 3s ebdomades?

  2. Guys can someone make me a teleport.java code that teleports a whole party to a x,y,z place?

    The request must be taken from partyleader, all pt members must be 85 lvl, close to the gatekeeper and none of them is dead nor in duel mode.

    From that teleport.java I want only the onAdvEvent that fires when "teleport" event is clicked (I don't want any html assistance)

    and the conditions after teleport event is clicked e.g

    if (event.equalsIgnoreCase("teleport"))

    that either teleport the party if the conditions are ok or show a message at chat that the conditions are not ok so they can't teleport.

     

     

     

    Thanks

  3. finito pisteuw pws exeis dikio, gt apo to na ka8otan kai na me edeixne as me eftiaxne ena pio aplo paradeigma apo auto p i8ela isa isa na katalavw pws domeitai ena quest. Apo ekei kai kai pera apla 8a peiramatizomoun me to quest efoson 8a kalipte ta basika.

    Kai me to vJass code p edwsa dleogr sto forum ekeino exei xilia 2 paradeigmata pws na ma8eis ekeinh thn glwssa gia to sigekrimeno game kai oxi apla mia 3erh java i python.Ekei se lene thn ka8e leitourgia kai einai ola tzampe.Gia auto eipa na dw an mporw na kanw kati kai me to l2 p m aresei kai oxi mono me to Warcraft3

  4. ma den einai auto p zitaw, kai den katalavainw tpt. APLA ftiaxe ena aplo quest kai dwse m to code, ta htm egw 8a ta balw kai ti 8a lene mesa.

     

    EDIT:GIA NA KATALAVEIS GT APLA DEN MPORW NA TO KANW 8A SE PW ENA TRANO PARADEIGMA

    Apo code 3erw to vJass ths Blizzard p einai gia Warcraft3 opws ta maps tou dota.kai eimai expert

    Ena paidi ekane request gia ena spell (dld ena skill) pou na roufaei hp apo mia mesaia se mege8os perioxh p kanei target.

    Tou edixa xilia etoima spell kai me leei an dne me dwseis auto p 8elw akribw sden 8a katalavw tpt. Etsi ka8isa kai to egrapsa kai den ton epiza 10 sinexomena post

    scope Blood initializer Init
    //This trigger was for posting it in the-helper forum so that's why it has many globals
       globals
           private constant integer ABIL_ID        = 'Bloo'   //as named is the raw code of the casted ability
           private constant integer Hprate         = 20       //That is the rate of the damage done for every "rate" seconds 
           private constant integer rate2          = 5        //Sets the bonus hp for  every level with base the doublerate integer
           private constant integer Doublerate     = 20       //That is the base maxhp percent function that checks the % of the unit's maxhp to double the rate
           private constant integer limitdistance  = 800      // This is the base distance limit of unit and the target point                          
           private constant integer distance2      = 100      //And that is the upgraded distance limit e.g TrPS lvl 2 limitdistance=1800+2*200
           private constant integer range          = 170      //This sets the base range of the area that the heart damages
           private constant integer range2         = 20       //And this upgrades the range depending the ability's level
           private constant real Timeleft          = 6        //That is the time that no unit passes by the area and ends the ability
           private constant integer percentdrop    = 2        //This is the number that drops the damage done to the targets.The value is percent 
           private constant integer AbsLim         = 600      //This is the limit of the amount that can be sent back to hero
           private constant string DamageEffect    = "Objects\\Spawnmodels\\Human\\HumanBlood\\HumanBloodFootman.mdl" 
           private constant string Healeffect      = "Abilities\\Spells\\Undead\\VampiricAura\\VampiricAuraTarget.mdl"
           private constant string chest           = "chest"
           private constant string origin          = "origin"
           private real array rate                  // That is the rate of the "Hprate" (The rate arrays set is in Init Function)
           private conditionfunc cf              //Shhhhh! Its a secret!
           private unit Caster
           private real ngu
       endglobals
    //--------------------------Here we Damage the units int he group we picked--------------------------\\   
       private function Damage takes nothing returns nothing
           call AbilityDmg_damage(Caster, GetEnumUnit(), ngu)
           call DestroyEffect(AddSpecialEffectTarget( DamageEffect, GetEnumUnit(), chest))
       endfunction
    //----------------------Here we get the conditions that the units must have to get damaged----------------------\\     
       private function PickCond takes nothing returns boolean
           return GetUnitState(GetFilterUnit(), UNIT_STATE_LIFE) > 0 and IsUnitType(GetFilterUnit(), UNIT_TYPE_MAGIC_IMMUNE) != true and IsUnitEnemy(GetFilterUnit(), GetOwningPlayer(GetTriggerUnit())) == true
       endfunction
    //----------------------Here is the condition that checkes the raw code of the ability we cast--------------------\\
       private function Cond takes nothing returns boolean
           return GetSpellAbilityId() == ABIL_ID
       endfunction
     //----------------------Here is the main action----------------------\\        
       private function Act takes nothing returns nothing
           local integer Gnum
           local real percent
           local real Rate
           local real c_range
           local real time = 0
           local real Blood = 0
           local unit caster = GetTriggerUnit()
           local real x = GetSpellTargetX()
           local real y = GetSpellTargetY()
           local group absorbed = CreateGroup()
           local integer lvl = GetUnitAbilityLevel(caster, ABIL_ID)
           local real ratex2 = Hprate+lvl*rate2
           local real sacrificial = GetUnitState(caster, UNIT_STATE_LIFE)-GetUnitState(caster, UNIT_STATE_LIFE)*(0.04+0.01*lvl)
           local real Range = range+lvl*range2
           local real dist = limitdistance+lvl*distance2
           call SetUnitState(caster, UNIT_STATE_LIFE, sacrificial)
           
           loop
               set c_range = SquareRoot((GetUnitX(caster) - x) * (GetUnitX(caster) - x) + (GetUnitY(caster) - y) * (GetUnitY(caster) - y))
               exitwhen Blood >= AbsLim or c_range >= dist or time >= Timeleft
               set percent = GetUnitStatePercent( caster, UNIT_STATE_LIFE, UNIT_STATE_MAX_LIFE)
               if percent < ratex2 then
               set Rate = rate[lvl]/2
               else
               set Rate = rate[lvl]
               endif
               set Caster = caster
               call GroupEnumUnitsInRange(absorbed, x, y, range, cf)
               set Gnum = CountUnitsInGroup(absorbed)
               if FirstOfGroup(absorbed) != null then
                   set ngu = Hprate*(100-(Gnum-1)*percentdrop)/100
                   call ForGroup(absorbed, function Damage)
                   set Blood = Blood+ngu*Gnum
                   set time = 0
               else
               set time = time + Rate
               endif
               call TriggerSleepAction(Rate)
           endloop
           if Blood >= AbsLim then
           call SetUnitState(caster, UNIT_STATE_LIFE, GetUnitState(caster, UNIT_STATE_LIFE)+AbsLim)
           else
           call SetUnitState(caster, UNIT_STATE_LIFE, GetUnitState(caster, UNIT_STATE_LIFE)+Blood)
           endif
           call DestroyEffect(AddSpecialEffectTarget( Healeffect, caster, origin))
           call GroupClear(absorbed)
           call DestroyGroup(absorbed)
           set absorbed = null
           set caster = null
       endfunction
    //----------------------Here is the end of the main action----------------------\\        
    
       private function Init takes nothing returns nothing
           local trigger trig = CreateTrigger( )
           call TriggerRegisterAnyUnitEventBJ(trig, EVENT_PLAYER_UNIT_SPELL_EFFECT )
           call TriggerAddCondition(trig, Condition(function Cond))
           call TriggerAddAction(trig, function Act)
           set cf = Condition(function PickCond)
           set rate[1] = 0.5
           set rate[2] = 0.3
           set rate[3] = 0.2
           set rate[4] = 0.12
       endfunction
    endscope

    to code mesa exei ta panda ola. Oti configure 8elei, ti kanei i ka8e leitourgeia (function) kai me eipe euxaristw katalava apolutws pws douleuw magies sthn vJass glwssa programmatismou.Etsi 8elw kai egw ena quest se python an den mporeis pes DEN MPORW h rwta kana moderator i kana kalo member an 3erei python kai pws kanei ena quest.

  5. file request kanw. ane imai se la8os topic pes kapion ta to kanei move. Egw to mono p zitaw einai ena init.py p na s kanei teleport to party se ena meros (x,y,z) kai na iparxei i idia gk ekei p na se paei pisw. dld den exeis tis gnwseis na to kaneis?

    Efoson den 3erw python den 3erw na kanw kai modify sta metra m, alla otan dw to paradeigma 8a katalavw pws domeitai ena quest me python, gt katalavainw mono me swsta paradeigmata.

     

    thn gk 8a thn balw egw sto meros.

  6. I will test it and see  ;D

     

     

    EDIT: It says home.htm is missing, lol the other script didn't have any htm

    EDIT2:I set gmonly false and it has blank page, and a gameserver error (at dos window)

     

    I have 10 custom rbs in my game and I want an npc to show their respawn delay, or if it's too hard just show their status to the player that talks to npc to go to kill them..... I don't have any java knowledge.....if I had I woudn't bother ya to make that....

  7. gia na ta xemperdepsoume, gt alla lew alla katalaves:ta lew teleutaia fora kai ka8ara

    Iparxei 1 pt 8 atoma oloi 84lvl kai panw kai kanei to quest o leader. Otan ginei to event (on event = 0) na 3ekinaei to quest kai to pt na paei se ena sigekrimeno meros.Sto meros auto iparxei ena mod (oti nane, arkei na einai mob, to id 8a to ka8orisw egw esu apla bale "EnterMobID_HERE") 8a iparxei ena public boolean pou na chekarei an ginetai auto to quest apo allo pt.Telos me thn GK apo town.

    Otan paei to pt sto meros auto 8a iparxei i idia pou an ths miliseis 8a bgalei allo html (efoson o pt leader 8a exei condition 1 an 8imamai kala)

    kai sto event pou 8a patisei o pt leader (to link dld gia na figei pisw) na chekarei an to rb einai zwntano, na to healarei an exei faei tuxon dmg kai an tous paei pisw, kai an einai nekro apla na tous paei pisw kai na teliwsei to quest kai to boolean na 3anaginei true wste na mporei na mpei allo pt argotera.

     

    Auto me to item p eipa itan mono kai mono na chekarei an to rb einai zwntano i oxi se periptwsh p den ginetai kateu8eian.O logos p 8a healaretai to rb otan den to skotwnoun eiani gt to epomeno party 8a paei kai 8a 3ekinisei na baraei to rb apo kamia 50-60% life.

×
×
  • Create New...