Jump to content

stydianx

Members
  • Posts

    390
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by stydianx

  1. Are you using custom textures? And did you calculate the lights properly?

     

    Thanks for the reply. uhmm.. i'm not using custom textures.

    my lights are at 172, (i want it to be daylight)

     

    may i ask how do i "properly" calculate the lights?

    cause i did this but i dont know the proper way.

     

    thanks <3

  2. Hello guys, i wanted to learn how to create custom maps to save some money so i started using browedit.

    i got the map done. i followed the tutorial on youtube) then i uploaded the map into my server.

    but when i warped to my new map, the ground was black but i can see objects. i dont know what cause this.

    i have properly done "gat edit" "light edit". but the ground was black and i cant move.

     

    if anyone could help me, it'll be so great and very much appreciated.

  3.  

    prontera,165,178,8    script    Old Woman    103,{
     
        setarray .@Items[0],714,25,1061,100,1095,200,618,10,1551,2,1614,1,727,20;
        set .@n$,"[Old Woman]";
     
        mes .@n$;
        if(BerzQuest == 1) {
            mes "Hey, I remember you! I already told you that you may only complete this quest once.";
            close; }
        mes "Greeting, lad. I found a really nifty item while I was picking mushrooms near Glast Heim.";
        next;
        if(select("Keep Talking:Leave")==2) goto M_Leave;
     
        mes .@n$;
        mes "I have never seen an item like this before. I am told it can be placed inside any accessory with a slot available.";
        next;
        mes .@n$;
        mes "If you're interested in this item, I'll tell you what you need for me to make you one of your own. I can only give one of these to each player, so once you finish this quest, you may not do it again.";
        next;
        if(select("Tell me more about it:Nah, I don't care about it")==2) goto M_Leave;
     
        mes .@n$;
        mes "I believe the item is called a ^FF0000Berzebub Card^000000. It makes you cast spells really fast!";
        next;
        mes .@n$;
        mes "I need all of the following items:";
        for(set .@i,0; .@i<getarraysize(.@Items); set .@i,.@i+2) {
            mes " ~ "+.@Items[.@i+1]+"x "+getitemname(.@Items[.@i]);
            if (countitem(.@Items[.@i]) < .@Items[.@i+1]) set .@nr,1; }
        next;
        if(select("I have all of that!:I'll get those ASAP")==2) goto M_Leave;
     
        mes .@n$;
        if (.@nr) {
            mes "You lie! Get out of here and get those items, you sorry excuse for a rock star.";
            close; }
        for(set .@i,0; .@i<getarraysize(.@Items); set .@i,.@i+2)
            delitem .@Items[.@i], .@Items[.@i+1];
        getitem 4145,1;
        set BerzQuest, 1;
        mes "Congratulations! You have all the items. Here is your ^FF0000Berzebub Card^000000, as promised.";
        emotion e_grat;
        close;
     
    M_Leave:
        mes .@n$;
        mes "Such a great item I have right here...";
        close;
    }

     

    I want it to talk and walk.

    and also, i want this script to be available only to level 20 Players

  4. A friend told me about a script where it makes 2 monster fight and then players watch along side it.

    We cant seem to figure out the exact name of that script/event.

    I tried searching for Monster Brawl in this forum but nothing came up, also tried in youtube.

    Can anyone please provide me with this script or a link to where i can find it? please and thanks you.

  5. look for gold room.

    Edit the contents, instead of getting 1 gold bar from it, replace it with TCG.

    Replace the spawns (PecoPeco) with the monster desired (Titan).

     

    edit:

    Edit mob_db.text, create a new monster, use the same sprite but different monster name.

    This way the original monster(titan) in other maps wont be affected.

  6. does anyone know where i can get files of this game? i want to make a private server of this game.

    tried searching google but can't seem to find one.. only leads me to private server list..

  7. set hptimer,0;
    set isfirstime,0;
    

    these are player based variable...need to attach a player then only the script can run...

    and...during OnInit...if you didnt / cant attach a player.... it will spam error ...coz no player it currently attach to it....

    ohhh.. so the errors are just normal for this one?

    but it's still working?!

    okay cool :)

  8. Try this, I haven't tested it yet.

    - script freakingevent#disable -1,{
    OnInit:
    disablenpc "munakajata";
    disablenpc "escapepad";
    setarray .npc$[0],"[Escape Pad]","[bat Mobile]";
    set hptimer,0;
    set isfirstime,0;
    end;
    }
    - script freakingevent -1,{
    OnClock000:
    OnClock0200:
    OnClock0400:
    OnClock0600:
    OnClock0800:
    OnClock1000:
    OnClock1200:
    OnClock1400:
    OnClock1600:
    OnClock1800:
    OnClock2000:
    OnClock2200:
    goto startfreakinevent;
    startfreakinevent:
    announce "A freaking event will begin in 3 minutes!",0;
    sleep2 180000;
    initnpctimer;
    set hptimer,1;
    announce "Talk to me now if you wanna join! The event has already started!",0;
    enablenpc "munakajata";
    enablenpc "escapepod";
    OnTimer3600000:
    announce "Event is finish!",0;
    set isfirstime,0;
    disablenpc "munakajata";
    disablenpc "escapepad";
    set hptimer,0;
    warp "prontera",151,181;
    stopnpctimer;
    end;
    }
    prontera,104,68,3 script munakajata 413,{
      mes .npc$[1];
      mes "Hello, What can I do for you?";
      next;
      menu "Join the freaking event",-,"Leave",leave;
      if(isfirstime == 0){
      set isfirstime,1;
      set Hp,Hp/2;
      warp new_3-1,100,100;
      initnpctimer;
      goto chicken;
    }
      else {
      mes "You can only register once per instance of this event!";
      close;
    leave:
     close;
    }
    Chicken:
      OnTimer1000:
      getmapxy(.mapname$,.mapx,.mapy,0,strcharinfo(0));
      if(.mapname == "new_3-1"){
      set Hp,Hp-1000;
      set Sp,Sp-500;
      set Zeny,Zeny+1000;
      }
      if(hptimer == 0)
      stopnpctimer;
    }
    new_3-1,104,68,3 script escapepad 413,{
      mes .npc$[0];
      mes "Yo, wanna go?";
      next;
      warp "prontera",151,181;
    }
    
    

    If you want it to become a no potion room, put the healing items' ids here. Too lazy to do it myself. lol

    there's a lot of errors a debugs:

    [Error]: npc_enable: Attempted to hide a non-existing NPC 'escapepad' (flag=0).

    [status]: Loading NPC file: npc/re/warps/dungeons/ecl_dun.txt

    [Error]: script_rid2sd: fatal error ! player not attached!

    [status]: Loading NPC file: npc/re/warps/dungeons/iz_dun.txt

    [Error]: script:set: no player attached for player variable 'hptimer'

    [Debug]: Function: set (2 parameters):

    [Debug]: Data: variable name='hptimer'

    [Debug]: Data: number value=0

    [Debug]: Source (NPC): freakingevent#disable (invisible/not on a map)

    [Error]: script_rid2sd: fatal error ! player not attached!

    [Debug]: Function: set (2 parameters):

    [Error]: script:set: no player attached for player variable 'hptimer'

    [Debug]: Data: variable name='hptimer'

    [Debug]: Data: number value=1

    [Debug]: Source (NPC): freakingevent (invisible/not on a map)

  9. this event opens every 2 hours.

    NPC announces 3 min before

    NPC appears and announces the event is opened.

    Players who joins are announced and is warped to this map: new_3-1

    when player enters, -50% hp, automatically gain 1.000 zeny per second,

    looses 500 SP and looses 1000 HP per second

    There are no minimum player count but maximum of 20 players

    Entrance fee is 100k gold and 1 silver coin.

    Players may enter with or without a party.

    skills are allowed inside.

    event last for 1hour.

    Players may leave but can't go back in again until next event.

    Usable items are not allowed inside.

    there is an NPC inside the event which can warp players out of the map and back to the players save point.

    10 marine spheres appears and explodes within 5 sec. (if possible)

  10. Should be if those are job numbers. Refer to rAthena/db/const.txt. For all the other job ids

    Okay, i turned it to this :) i added 17 more :) hope it can support it..

    setarray .@jobs[0],0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27; //Add more jobs as needed.
    

    this is where i edit the price right?

    set .@req,3;

    EDIT: i can duplicate this script right? :)

  11. 'set' -> 'setarray'

    (please read your mapserver errors)

    do i just add numbers in this part?

    setarray .@jobs[0],0,1,2,3,4,5,6,7,8,9,10; //Add more jobs as needed.
    

    like 11,12,13,14,15; ?? :)

    (thanks for helping guys :))

    EDIT: @GmOcean, it's okay man! im lucky enough to have help from you guys :)

  12. mapname,x,y,z	script	npcname	123,{
    set .@jobs[0],0,1,2,3,4,5,6,7,8,9,10; //Add more jobs as needed.
    set .@req,3;
    mes "Welcome, I can change your appearance, from one job to another.";
    mes "Example:  AssassinCross look like an Archer.";
    for(.@i,0; .@i<(getarraysize(.@jobs); .@i++){set .@menu$,.@menu$ + jobname(.@jobs[.@i]) + ":";}
    menu .@menu$,-;
    if(countitem(7227) < .@req){next; mes "Not enough TCG"; close;}
    delitem 7227, .@req;
    setlook(0,.@jobs[(.@i-1)]);
    end;
    }
    

    Btw, I don't really remember what the itemID of TCGs are, but something keeps telling me it's 7091 lol. If i'm wrong just edit the script and change those entries to the correct item_id.

    Edit: updated item_ids to 7227 & to use jobname (suggested by Euphy).

    i tried this but i cannot talk to the NPC.. :(

    EDIT:

    AnnieRur, yours works just fine :) thanks to all you guys :)

    Only question i have now is where can i see the list of jobs and where do i put them in the script? :)

  13. Account bound items is located here: http://rathena.org/b...nt-bound-items/

    My function is as follows:

    function<TAB>script<TAB>GetBoundItem<TAB>{
    // Gives the player a bound item but checks if its stackable and just does regular give item
    // if it is.
    
    
    // One Arg (zero), the item ID.
    
    set .@ItemType,getiteminfo(getarg(0),2);
    if (.@ItemType == 0 || .@ItemType == 2 || .@ItemType == 3 || .@ItemType == 6 || .@ItemType == 7 || .@ItemType == 8 || .@ItemType == 10 || .@ItemType == 11 || .@ItemType == 18) {
    getitem getarg(0),1; }
    else {
    getitembound getarg(0),1; }
    
    return;
    }
    

    does this give other class's job?

    foes this give other jobs skills?

×
×
  • Create New...