Jump to content

Emistry

Forum Moderator
  • Posts

    9,889
  • Joined

  • Days Won

    349

Everything posted by Emistry

  1. try prontera,155,181,5 script Sample 757,{ [email protected] = gettime(DT_YEAR); [email protected] = gettime(DT_MONTH); [email protected]$ = "SELECT `nameid`, SUM(`amount`) AS `total` FROM `picklog` WHERE `type` = 'S' AND `amount` > 0 AND MONTH(`time`) = "[email protected]+" AND YEAR(`time`) = "[email protected]+" GROUP BY `nameid` ORDER BY `total` DESC LIMIT 10"; [email protected] = query_sql([email protected]$, [email protected], [email protected]); mes "Items:"; for ([email protected] = 0; [email protected] < [email protected]; [email protected]++) mes getitemname([email protected][[email protected]])+" - "+F_InsertComma([email protected][[email protected]]); close; }
  2. these are quest skill (aka platinum skills) you wont get them through allskills atcommand @questskill {<skill ID>} @lostskill {<skill ID>} Permanently adds or removes the specified quest skill. If no skill ID is specified, a list of available skills will be returned. use these instead.
  3. depend on your script, you can do like these if (condition_A) { select("Menu 1", "Menu 2", "Menu 3"); } else { select("Menu 4", "Menu 5", "Menu 6"); } or select((condition_A ? "Menu 1" : ""), (condition_A ? "Menu 2" : ""), (condition_A ? "Menu 3" : ""), "Menu 4", "Menu 5", "Menu 6"); etc
  4. Version 2.0.0 added option to bulk add/remove item (to cater scenario where chat box insufficient max length like 10 items with million ID range) added option to clear/reset the items in a group. added option to allow different save mode (experimental) use at your own risk (example: other players may share same settings with you) refactor the script to make it slightly easier to read/maintain
  5. - script sample -1,{ OnMinute00: OnMinute30: [email protected] = getmapunits(BL_PC, "ordeal_a02", [email protected]$); for ([email protected] = 0; [email protected] < [email protected]; [email protected]++) warp "SavePoint", 0, 0, convertpcinfo([email protected]$[[email protected]], CPC_CHAR); end; }
  6. conf/battle/feature.conf#L143-L148 // Itemlink System on informational related commands (Note 1) // Generates an itemlink string for an item and can be used for npctalk, message, // dispbottom, and broadcast commands. The result is clickable-item name just // like from SHIFT+Click from player's inventory/cart/equipment window. // Requires: 2015-11-04Ragexe or later feature.itemlink: on
  7. try this Script: | atcommand "@streset"; skill "ALL_INCCARRY", gympassmemory, SKILL_PERM_GRANT;
  8. your files probably not compatible with the client you selected or your files have invalid syntax or wrong format or structure
  9. prontera,155,181,5 script Sample 757,{ mes "Exchange "+.amount+"x "+getitemname(.itemid)+" into a costume."; if (select("Yes" , "Cancel") == 1) { if (countitem(.itemid) < .amount) { mes "not enough item."; } else { delitem .itemid, .amount; getitem F_Rand(501, 502, 503, 504, 505), 1; mes "You gained a costume."; } } close; OnInit: .itemid = 512; .amount = 1; end; } there are probably thousand of exchanger NPCs like these can be found in the forum, might as well try to search for it next time.
  10. .itm_p = 33017;608;607; // Required Item .itm_a = 1;1;1; // Required Amount change to .itm_p = 33017; // Required Item .itm_a = 1; // Required Amount that isn't an array.
  11. db/pre-re/job_exp.yml you meant adjusting the exp required for each level ?
  12. function Go { set lastwarp$, getarg(0); set lastwarpx, getarg(1,0); set lastwarpy, getarg(2,0); warp getarg(0),getarg(1,0),getarg(2,0); end; } change to function Go { if (select("Pay 20k Zeny", "Cancel") == 2) close3; if (Zeny < 20000) { mes "You don't have enough Zeny."; close3; } Zeny -= 20000; close2; set lastwarp$, getarg(0); set lastwarpx, getarg(1,0); set lastwarpy, getarg(2,0); warp getarg(0),getarg(1,0),getarg(2,0); end; }
  13. maybe you can remove the flag from here src/map/pc.cpp#L6596 md->state.steal_flag = UCHAR_MAX; //you can't steal from this mob any more or adjust the config here conf/battle/skill.conf#L223-L226 // How many times you could try to steal from a mob. // Note: It helps to avoid stealing exploit on monsters with few rare items // Use 0 to disable (max allowed value is 255) skill_steal_max_tries: 0 if you want it to auto steal with skill with minimum src mod you can consider to grant the char with both steal skill and snatcher skill, it should do the trick
  14. *rentalcountitem(<item id>{,<accountID>}) *rentalcountitem("<item name>"{,<accountID>}) This function will return the number of rental items for the specified item ID that the invoking character has in the inventory.
  15. perhaps its the /showname command that display your guild rank title ?
  16. alternative using NPC script - script sample -1,{ OnInit: bindatcmd("killmonsterarea", strnpcinfo(3)+"::OnStart"); end; OnStart: if ([email protected]_numparameters == 4) { [email protected]$ = strcharinfo(3); [email protected] = [email protected]_parameters$[0]; [email protected] = [email protected]_parameters$[1]; [email protected] = [email protected]_parameters$[2]; [email protected] = .[email protected]_parameters$[3]; } else if ([email protected]_numparameters == 5) { [email protected]$ = [email protected]_parameters$[0]; [email protected] = [email protected]_parameters$[1]; [email protected] = [email protected]_parameters$[2]; [email protected] = [email protected]_parameters$[3]; [email protected] = [email protected]_parameters$[4]; } else { getmapxy([email protected]$, [email protected]_x, [email protected]_y, BL_PC); [email protected] = [email protected]_x - 14; [email protected] = [email protected]_y - 14; [email protected] = [email protected]_x + 14; [email protected] = [email protected]_y + 14; } if (getmapusers([email protected]$) == -1) { dispbottom "Invalid map - "[email protected]$+"."; } else { [email protected] = getareaunits(BL_MOB, [email protected]$, [email protected], [email protected], [email protected], [email protected], [email protected]); for ([email protected] = 0; [email protected] < [email protected]; [email protected]++) { if (unitexists([email protected][[email protected]])) { unitkill [email protected][[email protected]]; [email protected]++; } } dispbottom "Killed "[email protected]+" monsters"; } end; } @killmonsterarea -> kill monster around you @killmonsterarea 100 200 200 300 -> kill monster at current map (100,200) to (200,300) @killmonsterarea prontera 100 200 200 300 -> kill monster at prontera (100,200) to (200,300)
  17. at the moment, i think only herc's mapserver support the cli command.
  18. ALTER TABLE <table_name> MODIFY <col_name> INT; This will change the col_name's type to INT (with default length)
  19. if this case, you should also patch the database after you removed the item from the server permanently, else you probably getting alot warning from map-server stating invalid item founds. all the item will render become unknown item in server if its removed from the item_db
  20. may follow the window 10 instruction which I updated in the post here, it work in my win10 machine
  21. conf/log_athena.conf#L10-L44 // Enable Logs? (Note 3) // 0x00000000 - Don't log at all // 0x00000001 - (T) Log trades // 0x00000002 - (V) Log vending transactions // 0x00000004 - (P) Log items drop/picked by players // 0x00000008 - (L) Log items drop/looted by monsters // 0x00000010 - (S) Log NPC transactions (buy/sell) // 0x00000020 - (N) Log Script transactions (items deleted/acquired through quests) // 0x00000040 - (D) Log items stolen from mobs (Steal/Gank) // 0x00000080 - (C) Log player-used items (consumables/pet&hom&merc food/items used for skills&attacks) // 0x00000100 - (O) Log produced/ingredient items // 0x00000200 - (U) Log MVP prize items // 0x00000400 - (A) Log player created/deleted items (through @/# commands) // 0x00000800 - (R) Log items placed/retrieved from storage. // 0x00001000 - (G) Log items placed/retrieved from guild storage. // 0x00002000 - (E) Log mail system transactions. // 0x00004000 - (I) Log auction system transactions. // 0x00008000 - (B) Log buying store transactions // 0x00010000 - (X) Log all other transactions (rentals expiring/inserting cards/items removed by item_check/ // rings deleted by divorce/pet egg (un)hatching/pet armor (un)equipping/Weapon Refine skill/Remove Trap skill/Stylist) // 0x00020000 - ($) Log cash transactions // 0x00040000 - (K) Log account bank transactions // 0x00080000 - (F) Removed bound items when guild/party is broken // 0x00100000 - (Y) Log Roulette Lottery // 0x00200000 - (Z) Merged items from item mergers process. // 0x00400000 - (Q) Log items given from quest-granted drops. // 0x00800000 - (H) Log items consumed by Private Airship system // 0x01000000 - (J) Log Barter Shop transactions // 0x02000000 - (W) Log Laphine system transactions // 0x04000000 - (0) Enchantgrade UI // 0x08000000 - (1) Reform UI // 0x10000000 - (2) Enchant UI // Example: Log trades+vending+script items+created items: 1+2+32+1024 = 1059 // Please note that moving items from inventory to cart and back is not logged by design. enable_logs: 0xFFFFFFFF the log here should be good enough for you to track most of the item in your server.
  22. prontera,147,173,4 script Bulletin Board#29 1903,1,1,{ end; OnTouch: mes "Opening chest in"; sleep2 1000; mes "5..."; sleep2 1000; mes "4..."; sleep2 1000; mes "3..."; sleep2 1000; mes "2..."; sleep2 1000; mes "1..."; sleep2 1000; mes "Loot obtained."; close; } OnTouch: This label will be executed if a trigger area is defined for the NPC object it's in. If it isn't present, the execution will start from the beginning of the NPC code. The RID of the triggering character object will be attached. OnTouch_: Similar to OnTouch, but will only run one instance. Another character is chosen once the triggering character leaves the area. or check the distance between NPC and Player prontera,147,173,4 script Bulletin Board#29 1903,{ getmapxy([email protected]_map$, [email protected]_x, [email protected]_y, BL_NPC); getmapxy([email protected]$, [email protected], [email protected], BL_PC); if (distance([email protected]_x, [email protected]_y, [email protected], [email protected]) > 1) end; mes "Opening chest in"; sleep2 1000; mes "5..."; sleep2 1000; mes "4..."; sleep2 1000; mes "3..."; sleep2 1000; mes "2..."; sleep2 1000; mes "1..."; sleep2 1000; mes "Loot obtained."; close; }
  23. conf/groups.yml Permissions: view_equipment: true maybe consider to enable this permission to all normal player?
  24. if you are creating an equipment that give additional exp when hunting mob, maybe consider to use a proper item bonuses instead? Experience ---------- bonus2 bExpAddRace,r,x; Increase exp gained by x% against enemies of race r bonus2 bExpAddClass,c,x; Increase exp gained by x% against enemies of class c
×
×
  • Create New...