nasagnilac

Members
  • Content Count

    153
  • Avg. Content Per Day

    0
  • Joined

  • Last visited

  • Days Won

    1

nasagnilac last won the day on January 6

nasagnilac had the most liked content!

Community Reputation

9 Neutral

About nasagnilac

  • Rank
    Poporing

Profile Information

  • Gender
    Male
  • Location
    Philippines
  • Server
    PrestigeRO
  • Github
    nasagnilac

Contact Methods

  • Skype
    nasagnilac.leiron

Recent Profile Visitors

1,761 profile views
  1. I added this quest icon using questinfo scriptcommand and I want to disable it after a player completed the quest. How can I do that?
  2. kindly add me in skype nasagnilac.leiron para mapagusapan natin.
  3. nasagnilac

    Reproduce can_drop permission

    Anyone can help me reproduce can_drop permission. Players group with this permission is are not allowed to drop any items. can_drop and can_trade can be added in the permission at the same time. I want to separate the drop disabling in can_trade permission.
  4. nasagnilac

    Release: Extended Battleground [eAmod BG]

    There is a problem on this part.. crafted misc item like acid bottle are all blocked in non bg_consume maps. Cant use the skills properly. Its working this way.. If bg items is in your inventory it cant be consumed but if both bg and crafter or normal it will still fail to cast the skill. But if you removed the bg item and only crafted or normal item is in your inventory it will consume the item anywhere you are. In addition if you have both bg item and normal items in the inventory with mapflag bg_consume skill will work properly.
  5. nasagnilac

    Release: Extended Battleground [eAmod BG]

    Downloaded the files in https://github.com/xEasycore/ExtendedBG Successfully merged in latest rathena. Errors: Stone Control don't work properly cant find the neutral stone bgstart. Always receiving this error [Error]: script:bg_queue2teams: Non existant team id received %. after joining all characters needed.
  6. nasagnilac

    #main cooldown

    delay: 5000 set this one for 5 seconds cooldown. its normal that admin bypass the cooldown. In able for you make fast reply. But you can remove this part !pc_has_permission(sd, PC_PERM_CHANNEL_ADMIN) && channel->msg_delay != 0 && So that all user even gm groups has a cooldown in you #main.
  7. nasagnilac

    #main cooldown

    int channel_send(struct Channel *channel, struct map_session_data *sd, const char *msg) { int idx = 0; if(!channel || !sd || !msg || (idx = channel_pc_haschan(sd, channel)) < 0) return -1; if(!pc_has_permission(sd, PC_PERM_CHANNEL_ADMIN) && channel->msg_delay != 0 && DIFF_TICK(sd->channel_tick[idx] + channel->msg_delay, gettick()) > 0) { char cdmessage[CHAT_SIZE_MAX]; int cdseconds = DIFF_TICK(sd->channel_tick[idx] + channel->msg_delay, gettick()) / 1000; int cdmilliseconds = (DIFF_TICK(sd->channel_tick[idx] + channel->msg_delay, gettick()) - (cdseconds * 1000))/100; //clif_messagecolor(&sd->bl,color_table[COLOR_RED],msg_txt(sd,1455),false,SELF); //You're talking too fast! safesnprintf(cdmessage, sizeof(cdmessage), "You still have %d.%d second(s) left before you can use the channel again.", cdseconds, cdmilliseconds); clif_displaymessage(sd->fd, cdmessage); return -2; } else { char output[CHAT_SIZE_MAX]; unsigned long color = channel->color; if((channel->opt&CHAN_OPT_COLOR_OVERRIDE) && sd->fontcolor && sd->fontcolor < channel_config.colors_count && channel_config.colors[sd->fontcolor]) color = channel_config.colors[sd->fontcolor]; safesnprintf(output, CHAT_SIZE_MAX, "%s %s : %s", channel->alias, sd->status.name, msg); clif_channel_msg(channel,output,color); sd->channel_tick[idx] = gettick(); } return 0; } Try this for cooldown message..
  8. I have this private message problem. where the message sent to a player is different to sender message.
  9. nasagnilac

    [DISCONTINUED] Secret's Updated NEMO Patches

    I tried this all to 2015-11-04ragexea and font style is still different.
  10. nasagnilac

    [DISCONTINUED] Secret's Updated NEMO Patches

    As you can see in the image, the text change and its not the same text on my working client. I am using 2015-11-04aRagexe and this are the list of diff. i also cant connect to the server.
  11. nasagnilac

    [DISCONTINUED] Secret's Updated NEMO Patches

    @Secrets I use this to your latest upload in 2015-11-04Ragexe and when I start the client nothing happens.
  12. nasagnilac

    Guild Skill Cooldown Release

    I have here a code for hercules made by judas on my last server file. I need someone who can apply this in rathena coding and implement.
  13. nasagnilac

    AndRO for Athena

    @meyraw Hope you can also release a file release in able for us to develop more all your works.
  14. nasagnilac

    NPC Trader Merging

    We are trying to transfer NPC Trader of Hercules to rAthena but we received an error if we will use the item name. This is the code that cause the error. It means it doesn't allow Item name in sellitem scriptcommand. prontera,73,134,5 trader Milk Merchant#prt1 4_F_01,{ OnInit: sellitem Milk; end; } But if we use this format there is no problem at all. prontera,73,134,5 trader Milk Merchant#prt1 4_F_01,{ OnInit: sellitem 519; end; } So this is the current sellitem script command code. /** * @call sellitem <Item_ID>,{,price{,qty}}; * * adds <Item_ID> (or modifies if present) to shop * if price not provided (or -1) uses the item's value_sell **/ BUILDIN_FUNC(sellitem) { struct npc_data *nd; struct item_data *it; int i = 0, id = script_getnum(st,2); int value = 0; int qty = 0; int rental = 0; // Judas Bound/Rental int bound = 0; // Judas Bound/Rental if( !(nd = map_id2nd(st->oid)) ) { ShowWarning("buildin_sellitem: trying to run without a proper NPC!\n"); return false; } else if ( !(it = itemdb_exists(id)) ) { ShowWarning("buildin_sellitem: unknown item id '%d'!\n",id); return false; } value = script_hasdata(st,3) ? script_getnum(st, 3) : it->value_buy; if( value == -1 ) value = it->value_buy; if( !nd->u.scr.shop ) npc_trader_update(nd->src_id?nd->src_id:nd->bl.id); else {/* no need to run this if its empty */ for( i = 0; i < nd->u.scr.shop->items; i++ ) { if( nd->u.scr.shop->item[i].nameid == id ) break; } } if( i != nd->u.scr.shop->items ) { nd->u.scr.shop->item[i].value = value; nd->u.scr.shop->item[i].qty = qty; } else { for( i = 0; i < nd->u.scr.shop->items; i++ ) { if( nd->u.scr.shop->item[i].nameid == 0 ) break; } // Judas Bound/Rental rental = script_getnum(st, 4); bound = script_getnum(st, 5); if (rental > 0) { bound = 0; } else { if (bound > 4) { ShowWarning("buildin_sellitem: Can't add %s (%s/%s), bound is out of range!\n", it->name, nd->exname, nd->path); return false; } } if( i == nd->u.scr.shop->items ) { if( nd->u.scr.shop->items == USHRT_MAX ) { ShowWarning("buildin_sellitem: Can't add %s (%s/%s), shop list is full!\n", it->name, nd->exname, nd->path); return false; } i = nd->u.scr.shop->items; RECREATE(nd->u.scr.shop->item, struct npc_item_list, ++nd->u.scr.shop->items); } nd->u.scr.shop->item[i].nameid = it->nameid; nd->u.scr.shop->item[i].value = value; nd->u.scr.shop->item[i].qty = qty; } return SCRIPT_CMD_SUCCESS; } But judas made an adjustments using this new code and you need to add " " on the item name. BUILDIN_FUNC(sellitem) { struct npc_data *nd; struct item_data *it; - int i = 0, id = script_getnum(st,2); + int i = 0, id; int value = 0; int qty = 0; int rental = 0; // Judas Bound/Rental int bound = 0; // Judas Bound/Rental + // Resolve Item + struct script_data *someItem = script_getdata(st, 2); + get_val(st, someItem); + if (data_isint(someItem)) { + id = script_getnum(st, 2); + } + else if (data_isstring(someItem)) { + const char* str = script_getstr(st, 2); + struct item_data *testData = itemdb_searchname(str); + id = testData->nameid; + } if( !(nd = map_id2nd(st->oid)) ) { ShowWarning("buildin_sellitem: trying to run without a proper NPC!\n"); @ -24308,7 +24321,7 @@ struct script_function buildin_func[] = { // /* New Shop Support */ BUILDIN_DEF(openshop,"?"), - BUILDIN_DEF(sellitem,"i?????"), // Judas Bound/Rental + BUILDIN_DEF(sellitem,"??????"), // Judas Bound/Rental Anyone know how can we use the item name instead of using the new code.
  15. nasagnilac

    welcome msg help

    edit the conf/motd.txt