nasagnilac

Members
  • Content count

    137
  • 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

7 Neutral

About nasagnilac

  • Rank
    Poporing

Profile Information

  • Gender
    Male
  • Location
    Philippines
  • Github
    nasagnilac

Contact Methods

  • Skype
    nasagnilac.leiron

Recent Profile Visitors

1,332 profile views
  1. 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.
  2. View File Guild Ranking System A Ranking System for Guilds who always active in War of Emperium. Each guild gain 100 points for every castles they conquered and additional 5 points for every emperium they break. Everyone is allowed to view the TOP 10 guild and their points in the npc. It also allows you to add shiny or item rewards for the guild who has a highest point within the month. You can also manually reset the ranking points to 0. You are free to request for an upgrade of this script, just comment your idea the avail the script. Skype: nasagnilac.leiron Submitter nasagnilac Submitted 01/10/2018 Category PvP, GvG, WoE, Battleground Video Content Author nasagnilac  
  3. Version 1.2

    0 downloads

    A Ranking System for Guilds who always active in War of Emperium. Each guild gain 100 points for every castles they conquered and additional 5 points for every emperium they break. Everyone is allowed to view the TOP 10 guild and their points in the npc. It also allows you to add shiny or item rewards for the guild who has a highest point within the month. You can also manually reset the ranking points to 0. You are free to request for an upgrade of this script, just comment your idea the avail the script. Skype: nasagnilac.leiron

    $5.00

  4. A Ranking System for Guild Of The Month. Guild can gain 100 points in every castle they conquered and 5 points every time they break an emperium. You can view the Top 10 guild and their points. It also allows you to add zeny or item rewards for the guild who has a highest points within the month. You can also manually reset the ranking points to 0.
  5. welcome msg help

    edit the conf/motd.txt
  6. Planning to release the new version but it will be a paid script.
  7. I would like to know how I can find this in the client hex?
  8. Please help with my RO client.

    Look like changing IP is not the cause of this issue. make sure that you diff your client correctly and working. Use the data files for 2010 client and maybe its looking for some UI images that doesn't exist in your files.
  9. Achievement System Unknown Text

    I just put it to "Next Level" from to Thanks for the idea @sader1992.
  10. Achievement System Unknown Text

    I already solved this issue by hexing the client. But another issue is still have a text that need to convert. ´ÙÀ½ µî±îÁö this text should be converted to text.
  11. [Showcase] Achievements, Titles, Random Options

    What did you use for hexing?
  12. Achievement System Unknown Text

    How to fix this unknown text or how I can find this?
  13. What is the rAthena Compiler?

    Issue was solved by installing the right app in VS2017
  14. How I can configure the roulette items?

    Look like its not working properly and dont register the items from the database. I already changed it and nothing happens after server restart.
  15. How I can configure the roulette items?

    Sorry Im just new in rathena, Im from herc and not familiar on what changes in rathena for a long time. Issue now I am having problem in other items that unknown. Look like I cant find this items who cause it.