Jump to content

Euphy

Members
  • Posts

    2997
  • Joined

  • Last visited

  • Days Won

    73

Posts posted by Euphy

  1. This is now an issue because the Hall of Abyss update (Renewal-specific) removes the 'gvg_dungeon' mapflags from gld_dun[01-04] and places them on the Hall of Abyss maps (gld2_[ald/gef/pay/prt]).

    Since splitting the directory requires some sort of restructuring, we may as well get other things done too:

    Any opinions?
    • Upvote 2
  2. trunk/src/map/pc.c

    	if(battle_config.bone_drop==2

    || (battle_config.bone_drop==1 && map[sd->bl.m].flag.pvp))

    {

    struct item item_tmp;

    memset(&item_tmp,0,sizeof(item_tmp));

    item_tmp.nameid=ITEMID_SKULL_;

    item_tmp.identify=1;

    item_tmp.card[0]=CARD0_CREATE;

    item_tmp.card[1]=0;

    item_tmp.card[2]=GetWord(sd->status.char_id,0); // CharId

    item_tmp.card[3]=GetWord(sd->status.char_id,1);

    map_addflooritem(&item_tmp,1,sd->bl.m,sd->bl.x,sd->bl.y,0,0,0,0);

    }

    Change 'nameid' (item ID) and set the card slots to 0.
  3. I'd recommend displaying the item IDs as well as names in the window, and using 'input' instead of 'menu' since you'd likely get huge menus that are hard to find things in. xP

    	mes "Your inventory:";

    getinventorylist;

    for(set .@i,0; .@i<@inventorylist_count; set .@i,.@i+1)

    mes "[ "+@inventorylist_id[.@i]+" ] "+getitemname(@inventorylist_id[.@i])+" x"+@inventorylist_amount[.@i];

    next;

    input .@item;

    if (getitemname(.@item) != "null") {

    if (countitem(.@item)) {

    input .@amount;

    if (.@amount && countitem(.@item) >= .@amount) {

    delitem .@item,.@amount;

    mes getitemname(.@item)+" x"+.@amount+" deleted.";

    close;

    } else {

    mes "Invalid amount "+.@amount+".";

    close;

    }

    }

    }

    mes "Invalid input "+.@item+".";

    close;

    Or better yet, invoke the atcommands @itemlist / @delitem if you want to save yourself work. (Not that it matters since I gave you the script, but in the future... XD)
    • Upvote 2
  4. May Digest 2013
    The following digest covers the month of May, 2013.

    Development Team
    • @Joseph has returned as Script / DB Developer.
    Development Highlights
    • Renewal updates:
    • Renewal scripts:
      • Mora quests, town NPCs, guides, warps, mobs, Quiver Maker. (r17325, r17340)
      • Malangdo "Cat Gamers" quest. The episode is finished at last! (r17328)
      • Port Malaya town NPCs, Kafras, guides, warps. (r17328, r17335, r17337, r17338)
      • Refiners: HD ores, Blessed ores, Refine Tickets. (r17337, r17338)
    • Other noteworthy changes:
      • Implemented db/item_nouse.txt. (r17308)
      • Updated 'sc_start' to more closely match the official command. (r17326)
      • Updated 'recovery' script command as suggested. (r17321)
      • Added 'addmonsterdrop' and 'delmonsterdrop' commands. (r17326)
      • Added '@reload <type>' atcommand to reload databases/config. (r17326)
      • Added documentation for mapflags, doc/mapflags.txt. (r17334)
    Misc. Stats
    • During the period there were 33 commits.
    • Of these 33 commits 16 included bug-fixes.
    • Upvote 3
  5. prontera,150,150,0	script	Starter NPC	100,{

    if (#server_start) {

    mes "[Starter NPC]";

    mes "You can only use my services";

    mes "once per account, sorry.";

    close;

    }

    setarray .@jobs,

    Job_Rune_Knight_T,Job_Warlock_T,Job_Ranger_T,Job_Arch_Bishop_T,Job_Mechanic_T,Job_Guillotine_Cross_T,

    Job_Royal_Guard_T,Job_Sorcerer_T,((Sex)?Job_Minstrel_T:Job_Wanderer_T),Job_Sura_T,Job_Genetic_T,Job_Shadow_Chaser_T,

    Job_Gunslinger,Job_Taekwon,Job_Star_Gladiator,Job_Soul_Linker,Job_Super_Novice_E,((Sex)?Job_Kagerou:Job_Oboro);

    set .@size, getarraysize(.@jobs);

    for(set .@i,0; .@i<.@size; set .@i,.@i+1)

    set .@menu$,.@menu$+jobname(.@jobs[.@i])+":";

    mes "[Starter NPC]";

    mes "Welcome to Ragnarok!";

    mes "Please select a job.";

    next;

    set .@i, select(.@menu$)-1;

    mes "[Starter NPC]";

    mes "Are you sure you want to switch to the "+jobname(.@jobs[.@i])+" class?";

    next;

    if(select("Yes, I'm sure.:No, let me pick again.") == 2) {

    mes "[Starter NPC]";

    mes "Okay, take your time.";

    close;

    }

    mes "[Starter NPC]";

    mes "Job changed!";

    mes "Please take some apples, too.";

    mes "They'll come in handy.";

    emotion e_lv2;

    set #server_start,1;

    jobchange .@jobs[.@i];

    getitem 512,100;

    close;

    }

×
×
  • Create New...