Jump to content

Emistry

Forum Moderator
  • Posts

    10018
  • Joined

  • Days Won

    408

Everything posted by Emistry

  1. you have disabled or removed the npc.... enable the NPC or remove it from the script ...
  2. 7140,Seed_Of_Life,Seed of Life,0,600,,10,,,,,,,,,,,,,{ input .@input$; atcommand "@unjail " + .@input$; },{},{} you almost did it, except the missing semi colon;
  3. check the wav folder inside the data.grf, its all there.
  4. a slightly more optimized version... alberta,220,42,3 script CardTrader 60,{ mes "Exchange Cards:"; for (.@i = 0; .@i < .cards_size; .@i++) { mes "~ "+getitemname(.cards[.@i]); if (!countitem(.cards[.@i]) .@fail++; } if (!.@fail) { next; mes "[Card Trader]","Congratz you have all cards."; for (.@i = 0; .@i < .cards_size; .@i++) delitem .cards[.@i], 1; mes "You gained:"; for (.@i = 0 ; .@i < .price_size; .@i += 2) { mes "~ "+.prize[.@i+1]+"x "+getitemname(.prize[.@i]); getitem .prize[.@i],.prize[.@i+1]; } } close; OnInit: setarray .cards,4001,4002,4003,4004; // Card ID list setarray .prize,909,3,901,5; // <ITEM ID><AMOUNT>{<ITEM ID><AMOUNT>....} .cards_size = getarraysize(.cards); .price_size = getarraysize(.prize); end; }
  5. try change if(!getarg(0,0)&&!getarg(1,0)) into if (getargcount() < 2)
  6. maybe just follow how Randgrid Card work? auto cast dispell skill ? bonus3 bAutoSpell,"SA_DISPELL",1,50;
  7. shut down the server and run the SQL query DELETE FROM `char` WHERE `last_map` <> 'prontera' if you want a cleaner database, then you should remove records that stored in other table, whichever that are related with char info. (mostly consists of the char_id column in it)
  8. https://github.com/rathena/rathena/blob/8efd61f9b27dd5163d8f71f55f2025470f1254b3/src/config/core.hpp#L15
  9. 7551,Ticket02,Ticket VIP 14 days,0.50,,70,,,,,0xFFFFFFFF,63.2,,,,,,{ doevent "vip_group_main::OnSetVIP"; },{},{} - script vip_group_main -1,{ OnSetVIP: vip_time(60 * 24 * 14); OnPCLoginEvent: if (vip_status(VIP_STATUS_ACTIVE)) { atcommand "@adjgroupid 7"; .@second = vip_status(VIP_STATUS_REMAINING); addtimer (.@second * 1000), strnpcinfo(3)+"::OnExpire"; dispbottom "VIP Expire in "+F_InsertComma(.@second)+" second(s)"; } end; OnExpire: atcommand "@adjgroupid 0"; end; }
  10. turbo_room,94,105,4 script Zenny Giver#BG8 804,{ mes "^0055AA[ Banker ]^000000"; mes "Who wants to be a Millionaire?"; mes "For sure you are!"; next; .@zeny = min(5000000, (MAX_ZENY - Zeny)); mes "Here you go!"; mes F_InsertComma(.@zeny)+" zeny for you, darling"; Zeny += .@zeny; close; OnInit: waitingroom "Zenny Giver",0; end; }
  11. if you have enabled the log , then you can check it in the mvplog table. conf/log_athena.conf#L92-L94
  12. Items ----- You can refer to items by using HTML-like links to certain items: <ITEMLINK>Display Name<INFO>Item ID</INFO></ITEMLINK> Where <Display Name> is the name that will be displayed for your link and <Item ID> being the ID of the item you want to link to when clicked. In 2015 the tag name was changed to <ITEM> resulting in the following syntax: <ITEM>Display Name<INFO>Item ID</INFO></ITEM> The following sample will open a preview window for Red Potion: mes "Did you ever consume a <ITEMLINK>Red Potion<INFO>501</INFO></ITEMLINK>?"; // Or in 2015: mes "Did you ever consume a <ITEM>Red Potion<INFO>501</INFO></ITEM>?"; NOTE: Be aware that item links are rendered incorrectly in 2015+ clients at the moment.
  13. change announce(sprintf("[%s] : %dx %s - enjoy your prize!", .EventName$, .Prize_Qty[.@Sector], getitemname(.Prize_ID[.@Sector])), bc_blue | bc_self); getitem(.Prize_ID[.@Sector], .Prize_Qty[.@Sector]); into // 1% jackpot if (rand(10000) < 100) { .@item_id = 512; .@amount = 999; announce(sprintf("[%s] : %dx %s - enjoy your Jackpot prize!", .EventName$, .@amount, getitemname(.@item_id)), bc_blue | bc_self); } else { .@item_id = .Prize_ID[.@Sector]; .@amount = .Prize_Qty[.@Sector]; announce(sprintf("[%s] : %dx %s - enjoy your prize!", .EventName$, .@amount, getitemname(.@item_id)), bc_blue | bc_self); } getitem(.@item_id, .@amount);
  14. perhaps you unloaded or reloaded the npc, while you or someone currently halfway talking with the NPC?
  15. the map-server are pretty much self-explained, it already tell you the issue and the solution for it. the old emotion constants are deprecated now, change into the new constant name instead. find and replace each one that show in the map-server.
  16. set .@Debris,$Debris[rand(getarraysize($Debris))]; set .@Scatter,$Scatter[rand(getarraysize($Scatter))]; change to set .@Debris,.Debris[rand(getarraysize(.Debris))]; set .@Scatter,.Scatter[rand(getarraysize(.Scatter))];
  17. you can try this for(set .@c, 0; .@c < $@top; set .@c, .@c+1) { setd "$topmvp" + .@c, 0; setd "$topmvp" + .@c + "$", ""; } dispbottom "MVP Ranking has been Reset."; query_sql("DELETE FROM `char_reg_num` WHERE `key` = 'MvP'"); close2; addrid(0); MvP = 0; end;
  18. any stylist npc would work if they could support all the hairstyles.
  19. announce "Wow! The Seal has been annihilated by "+strcharinfo(0)+" He has just broken the seal and will start the quest of Valkyrie!","0x33FF66"; change to announce "Wow! The Seal has been annihilated by "+strcharinfo(0)+" He has just broken the seal and will start the quest of Valkyrie!", bc_all, 0x33FF66;
  20. possible, search all your custom script for any keywords of these: "DELETE FROM' or 'TRUNCATE' only if you have any backup, else its gone.
  21. create a datetime column in your sql table, and store the value using this https://www.w3schools.com/sql/func_mysql_now.asp
  22. Display Encoding change to Korean.
  23. OnPCLoginEvent: addtimer (60 * 60 * 1000), strnpcinfo(3)+"::OnPCLoginEvent"; // trigger event after 1 hour.
  24. update the data/mapresnametable.txt make sure the minimap file name are correct.
×
×
  • Create New...