Jump to content

Jaburak

Members
  • Posts

    1125
  • Joined

  • Days Won

    31

Everything posted by Jaburak

  1. Jaburak

    Picklogs

    Yes!
  2. //---------All Job Registration--------------- dicastes01,246,119,1 script All Job Manager 106,{ warp "guild_vs3",0,0; close; }
  3. Jaburak

    Picklogs

    enable_logs: 2 //TRADE LOGS ONLY // Use MySQL Logs? (SQL Version Only) sql_logs: 1
  4. Just like cell_noatk?
  5. Try this; trunk/db/re/skill_cast_db.txt Find: //-- AS_SONICBLOW 136,0,0,2000,0,5000,0,-1 Change to: //-- AS_SONICBLOW 136,0,0,0,0,5000,0,-1
  6. Lol nothing! xD
  7. Just type ingame /guild "N A M E"
  8. prontera,50,50,3 script PrizeNPC 123,{ if(#AlreadyClaim > 0) { mes "You already claim your Prize!"; close; } mes "Do you want to claim your Prize?"; menu "Yup Sure!",-; next; mes "Here you go!"; getitem 512,1; //change for prize set #AlreadyClaim,1; close; }
  9. 1 prize in each player?
  10. prontera,155,170,5 script Gift 87,{ if( getgmlevel() < 60 ) end; if( select( "Give an item", "Leave" ) -1 ) end; input .@item_id; if( getiteminfo( .@item_id,0 ) == -1 ) { mes "Unknown item id."; close; } input .@amount; if( .@amount <= 0 ) { mes "Invalid Amount"; close; } set .@item_name$, getitemname( .@item_id ); set .@gm_name$, strcharinfo(0); do { set .@size, query_sql( "SELECT `account_id` from `char` where `online` = '1' order by `account_id` desc limit "+ ( .@loop *128 ) +", 128", .@account_id ); for( set .@i, 0; .@i < .@size; set .@i, .@i +1 ) { getitem .@item_id, .@amount, .@account_id[.@i]; message rid2name( .@account_id[.@i] ), "You get an "+ .@item_name$ +" from "+ .@gm_name$ +"."; } set .@loop, .@loop +1; } while( .@size ); mes "Done."; close; }
  11. It's not for all players.
  12. setarray .Package1[0],501,1,502,2,503,3; setarray .Package2[0],601,5,602,10; setarray .Package3[0],607,10;
  13. Why not use Euphy's Item Reward? //===== eAthena Script ======================================= //= Item Rewards NPC //===== By: ================================================== //= Euphy //===== Current Version: ===================================== //= 1.8 //===== Description: ========================================= //= Useful for event rewards, when a player is not necessarily online. //= Logging is available, if needed (holds 128 names). //= Note: Unclaimed rewards are limited to 64 at a time. //============================================================ prontera,156,195,6 script Item Rewards 836,{ // --------------------- Config --------------------- // Package format is "ID1,Count1,ID2,Count2,..." // GM Access: Level required to open the GM menu. // GM Delete: Level required to erase entries. // GM Logging: Level required to manage logs. set .GMAccess,60; set .GMDelete,80; set .GMLogging,99; set .PackageCount,3; setarray .Package1[0],501,1,502,2,503,3; setarray .Package2[0],601,5,602,10; setarray .Package3[0],607,10; // -------------------------------------------------- if (getgmlevel() >= .GMAccess) goto GM_Menu; mes "[Item Rewards]"; set .@i,0; while (.@i < getarraysize($itemreward$)) { if (strcharinfo(0) == $itemreward$[.@i]) goto GetReward; set .@i, .@i+2; } mes "You have no rewards pending."; close; GetReward: if (((Weight*100)/MaxWeight) > 49) { mes "You are over the weight limit."; close; } if (!checkweight(5055,getarraysize(getd(".Package"+$itemreward$[.@i+1])))) { mes "Clear space in your inventory."; close; } set .@j,0; while (.@j < getarraysize(getd(".Package"+$itemreward$[.@i+1]))) { getitem getd(".Package"+$itemreward$[.@i+1]+"["+.@j+"]"),getd(".Package"+$itemreward$[.@i+1]+"["+(.@j+1)+"]"); set .@j, .@j+2; } specialeffect2 248; deletearray $itemreward$[.@i],2; mes "Here you go!"; close; OnMinute00: OnMinute30: if (!getarraysize($itemreward$)) end; set .@i,0; while (.@i < getarraysize($itemreward$)) { message $itemreward$[.@i],"[You have a reward pending. See the Item Rewards NPC.]"; sleep 10; set .@i, .@i+2; } end; GM_Menu: mes "[Item Rewards]"; mes "What would you like to do?"; next; switch(select(" ~ ^FF55FFPackage information^000000: ~ ^FF55FFList unclaimed rewards^000000: ~ ^00D900Give a reward^000000: ~ "+((getgmlevel()<.GMDelete)?"^777777":"^DE0000")+"Delete a reward^000000: ~ "+((getgmlevel()<.GMDelete)?"^777777":"^DE0000")+"Delete all unclaimed rewards^000000: ~ "+((getgmlevel()<.GMLogging)?"^777777":"^55AAFF")+"Manage logs^000000: ~ [Close]")) { case 1: mes "[Item Rewards]"; set .@j,1; while (getd(".Package"+.@j)) { mes "^660099Package " + .@j + ":^000000"; set .@i,0; while (.@i < getarraysize(getd(".Package"+.@j))) { mes " ~ " + getd(".Package"+.@j+"["+(.@i+1)+"]") + "x " + getitemname(getd(".Package"+.@j+"["+(.@i)+"]")); set .@i, .@i+2; } set .@j, .@j+1; } next; goto GM_Menu; case 2: mes "[Item Rewards]"; mes "Used space: ^F52887" + (getarraysize($itemreward$)/2) + "^000000/64"; mes "--------------------------------"; set .@i,0; while (.@i < getarraysize($itemreward$)) { mes "^B041FF" + $itemreward$[.@i] + "^000000: package #" + $itemreward$[.@i+1]; set .@i, .@i+2; } next; goto GM_Menu; case 3: mes "[Item Rewards]"; if (getarraysize($itemreward$) > 127) { mes "No more names can be stored."; mes "Delete some values and try again."; next; goto GM_Menu; } mes "Input a name, then a package number."; input .@name$; query_sql "SELECT `char_id` FROM `char` WHERE `name` = '"+.@name$+"'",.@charid; if (!.@charid) { mes "The name is invalid."; next; goto GM_Menu; } else set .@charid,0; input .@package,1,.PackageCount; next; mes "[Item Rewards]"; mes "Player: ^B041FF" + .@name$ + "^000000"; mes "Package: ^B041FF#" + .@package + "^000000"; mes " "; mes "Are you sure?"; if (select("Yes:No") == 2) { mes "Request cancelled."; next; goto GM_Menu; } setarray $itemreward$[getarraysize($itemreward$)],.@name$,.@package; message .@name$,"[You have a reward pending. See the Item Rewards NPC.]"; if ($itemlog) { if (getarraysize($itemlog1$) > 127) { deletearray $itemlog1$[0],1; deletearray $itemlog2$[0],1; } setarray $itemlog1$[getarraysize($itemlog1$)],strcharinfo(0); setarray $itemlog2$[getarraysize($itemlog2$)],.@name$; } mes "Reward added."; next; goto GM_Menu; case 4: mes "[Item Rewards]"; if (getgmlevel() < .GMDelete) { mes "You are not permitted to delete entries."; next; goto GM_Menu; } mes "Input a name to cancel a reward."; input .@name$; set .@i,0; while (.@i < getarraysize($itemreward$)) { if ($itemreward$[.@i] == .@name$) { deletearray $itemreward$[.@i],2; mes "Name cleared."; next; goto GM_Menu; } set .@i, .@i+2; } mes "The name is invalid."; next; goto GM_Menu; case 5: mes "[Item Rewards]"; if (getgmlevel() < .GMDelete) { mes "You are not permitted to delete entries."; next; goto GM_Menu; } mes "^FF0000This action cannot be undone.^000000"; mes "Are you sure?"; mes " "; if (select("Yes:No") == 2) { mes "Request cancelled."; next; goto GM_Menu; } deletearray $itemreward$[0],getarraysize($itemreward$); mes "All entries cleared."; next; goto GM_Menu; case 6: Log_Menu: mes "[Item Rewards]"; if (getgmlevel() < .GMLogging) { mes "You are not permitted to manage logs."; next; goto GM_Menu; } mes "Logs are currently "+(($itemlog)?"^00D900enabled^000000":"^FF0000disabled^000000")+"."; next; switch(select(" ~ ^55AAFFView Logs^000000: ~ "+((!$itemlog)?"^00D900Enable":"^777777Disable")+" logging^000000: ~ ^DE0000Delete all logs^000000: ~ [Go back]")) { case 1: mes "[Item Rewards]"; mes "Used space: ^F52887" + (getarraysize($itemlog1$)) + "^000000/128"; mes "--------------------------------"; set .@i,0; while (.@i < getarraysize($itemlog1$)) { mes "^B041FF" + $itemlog1$[.@i] + "^000000: sent to ^55AAFF" + $itemlog2$[.@i] + "^000000"; set .@i, .@i+1; } next; goto Log_Menu; case 2: set $itemlog, ((!$itemlog)?1:0); goto Log_Menu; case 3: mes "[Item Rewards]"; mes "^FF0000This action cannot be undone.^000000"; mes "Are you sure?"; mes " "; if (select("Yes:No") == 2) { mes "Request cancelled."; next; goto Log_Menu; } deletearray $itemlog1$[0],getarraysize($itemlog1$); deletearray $itemlog2$[0],getarraysize($itemlog2$); mes "Logs cleared."; next; goto Log_Menu; case 4: next; goto GM_Menu; } case 7: close; } }
  14. Post the error message then.
  15. Index: conf/battle_athena.conf =================================================================== --- conf/battle_athena.conf (revision 17101) +++ conf/battle_athena.conf (working copy) @@ -57,5 +57,8 @@ // Includes duel, day/night, mute/manner, log settings. import: conf/battle/misc.conf + +// Import a little conf for mf_noequip +import: conf/battle/noequip.conf //Your custom config goes here. import: conf/import/battle_conf.txt Index: conf/battle/noequip.conf =================================================================== --- conf/battle/noequip.conf (revision 0) +++ conf/battle/noequip.conf (working copy) @@ -0,0 +0,6 @@ +// [Cydh] +// noequip is mapflag, you can check it in mapflag\noequip.txt +// mapflag format [mapname]<tab>mapflag<tab>noequip +// This mode will disable player to use any equipments in the map that has noequip mapflag +// except player with Group ID above noequip_belowgrouplv +noequip_belowgrouplv: 1 Index: conf/mapflag/noequip.txt =================================================================== --- conf/mapflag/noequip.txt (revision 0) +++ conf/mapflag/noequip.txt (working copy) @@ -0,0 +0,8 @@ +//===== unOfficial Script ======================================= +//= Map flags that disable players to use any equipments any usable item +//===== By: ================================================== +//= Cydh +//= [mapname] mapflag noequip +//============================================================ + +//guild_vs5 mapflag noequip Index: db/const.txt =================================================================== --- db/const.txt (revision 17101) +++ db/const.txt (working copy) @@ -367,3 +367,4 @@ mf_reset 52 +mf_noequip 53 //mf_noequip cell_walkable 0 Index: npc/scripts_mapflags.conf =================================================================== --- npc/scripts_mapflags.conf (revision 17101) +++ npc/scripts_mapflags.conf (working copy) @@ -28,3 +28,4 @@ npc: conf/mapflag/town.txt npc: conf/mapflag/reset.txt +npc: conf/mapflag/noequip.txt //mf_noequip Index: src/map/battle.c =================================================================== --- src/map/battle.c (revision 17101) +++ src/map/battle.c (working copy) @@ -5877,3 +5877,4 @@ { "mob_size_influence", &battle_config.mob_size_influence, 0, 0, 1, }, + { "noequip_belowgrouplv", &battle_config.noequip_belowgrouplv, 1, 0, MAX_LEVEL, }, //mf_noequip }; #ifndef STATS_OPT_OUT Index: src/map/battle.h =================================================================== --- src/map/battle.h (revision 17101) +++ src/map/battle.h (working copy) @@ -485,4 +485,5 @@ int mob_size_influence; // Enable modifications on earned experience, drop rates and monster status depending on monster size. [mkbu95] + int noequip_belowgrouplv; //mf_noequip } battle_config; void do_init_battle(void); Index: src/map/map.h =================================================================== --- src/map/map.h (revision 17101) +++ src/map/map.h (working copy) @@ -563,4 +563,5 @@ unsigned src4instance : 1; // To flag this map when it's used as a src map for instances unsigned reset :1; // [Daegaladh] + unsigned noequip : 1; //mf_noequip } flag; struct point save; Index: src/map/npc.c =================================================================== --- src/map/npc.c (revision 17101) +++ src/map/npc.c (working copy) @@ -3396,4 +3396,7 @@ else if (!strcmpi(w3,"reset")) map[m].flag.reset=state; + else if (!strcmpi(w3,"noequip")) //mf_noequip + map[m].flag.noequip=state; else ShowError("npc_parse_mapflag: unrecognized mapflag '%s' (file '%s', line '%d').\n", w3, filepath, strline(buffer,start-buffer)); Index: src/map/pc.c =================================================================== --- src/map/pc.c (revision 17101) +++ src/map/pc.c (working copy) @@ -8270,6 +8270,12 @@ clif_equipitemack(sd,n,0,0); // fail return 0; } + if( map[sd->bl.m].flag.noequip && pc_get_group_level(sd) < battle_config.noequip_belowgrouplv) //mf_noequip + { + clif_displaymessage (sd->fd, "You can't wear any equipments at this map."); + return 0; + } + if(pos == EQP_ACC) { //Accesories should only go in one of the two, pos = req_pos&EQP_ACC; Index: src/map/script.c =================================================================== --- src/map/script.c (revision 17101) +++ src/map/script.c (working copy) @@ -401,3 +401,4 @@ MF_BATTLEGROUND, - MF_RESET + MF_RESET, + MF_noequip //mf_noequip }; @@ -10707,4 +10707,5 @@ case MF_BATTLEGROUND: script_pushint(st,map[m].flag.battleground); break; case MF_RESET: script_pushint(st,map[m].flag.reset); break; + case MF_NOEQUIP: script_pushint(st,map[m].flag.noequip); break; //mf_noequip } } @@ -10807,4 +10807,5 @@ case MF_BATTLEGROUND: map[m].flag.battleground = (val <= 0 || val > 2) ? 1 : val; break; case MF_RESET: map[m].flag.reset = 1; break; + case MF_NOEQUIP: map[m].flag.noequip = 1; break; //mf_noequip } } @@ -10894,4 +10894,5 @@ case MF_BATTLEGROUND: map[m].flag.battleground = 0; break; case MF_RESET: map[m].flag.reset = 0; break; + case MF_NOEQUIP: map[m].flag.noequip=0; break; //mf_noequip } }
  16. Jaburak

    Def

    trunk/db/re/item_db.txt At the 9th structure.
  17. Jaburak

    Picklogs

    // eAthena - Log Configuration File // Enable Logs? // 1 - Log all events. // Or, determine what to log by adding up the different events: // 0002 - (T) Log trades // 0004 - (V) Log vending transactions // 0008 - (P) Log items drop/picked by players // 0016 - (L) Log items drop/looted by monsters // 0032 - (S) Log NPC transactions (buy/sell) // 0064 - (N) Log Script transactions (items deleted/acquired through quests) // 0128 - (M) Log items stolen from mobs (Steal/Gank) // 0256 - © Log player-used items // 0512 - (M) Log MVP prize items // 1024 - (A) Log player created/deleted items (through @/# commands) // 2048 - ® Log items placed/retrieved from storage. // 4096 - (G) Log items placed/retrieved from guild storage. // 8192 - (E) Log mail system transactions. // Example: Log trades+vending+script items+created items: 2+4+64+1024 = 1094 enable_logs: 2 //TRADE LOGS ONLY // Use MySQL Logs? (SQL Version Only) sql_logs: 1 // LOGGING FILTERS // ============================================================= // if any condition is true then the item will be logged // 0 = Don't log at all // 1 = Log any item // Advanced Filter Bits by item type: || // 0002 - Healing items (0) // 0004 - Etc Items(3) + Arrows (10) // 0008 - Usable Items(2) + Lures,Scrolls(11) // 0016 - Weapon(4) // 0032 - Shields,Armor,Headgears,Accessories,etc(5) // 0064 - Cards(6) // 0128 - Pet Accessories(8) + Eggs(7) (well, monsters don't drop 'em but we'll use the same system for ALL logs) // 0256 - Log expensive items ( >= price_items_log) // 0512 - Log big amount of items ( >= amount_items_log) // 1024 - Log refined items (if their refine >= refine_items_log ) // 2048 - Log rare items (if their drop chance <= rare_items_log ) // Examples: (log filters) // log_filter: 1 = logs ANY items // log_filter: 2 = logs only HEALING items // log_filter: 4 = logs only Etc Items and Arrows // log_filter: 64 = logs only Cards // log_filter: 322 = logs only Healing items, Cards and those items which price is >= price_items_log // log_filter: 4080 = logs all items (including all rare, big amount) exept healing, etc, arrows and useble ones log_filter: 1 // Log Items which Refine >= refine_items_log refine_items_log: 5 // Log Items whith min drop rate <= rare_items_log // 1 = 0.01%, 100 = 1% drop chance, etc rare_items_log: 100 // don't log it if the current item buy price < price_items_log price_items_log: 1000 // don't log it if the current item amount < amount_items_log amount_items_log: 100 //============================================================= // Log Dead Branch Usage log_branch: 0 // Track Zeny Changes // Filter settings // 0 - don't log; 1 - log any zeny changes; 2.....1000000 - minimal absolut logging zeny value log_zeny: 0 // Log MVP Monster Drops // Outdated. Use Pick_Log instead. But this log could be useful to keep track slayed MVPs log_mvpdrop: 0 // Log GM Commands (set to minimum level of Logged Commands) log_gm: 40 // Log NPC 'logmes' commands log_npc: 0 // Log CHAT (Global, Whisper, Party, Guild, Main chat) // LOGGING FILTERS // ============================================================= // 0 = Don't log at all // 1 = Log EVERYTHING! // Advanced Filter Bits: || // 02 - Log Global messages // 04 - Log Whisper messages // 08 - Log Party messages // 16 - Log Guild messages // 32 - Log Main chat messages // 64 - Don't log anything when WOE is on // Example: // log_chat: 12 = logs both Whisper & Party messages // log_chat: 16 = logs only Guild messages // log_chat: 68 = logs only Whisper, when WOE is off log_chat: 0 // Dead Branch Log Table log_branch_db: branchlog // Drops & Pickups Table log_pick_db: picklog // Zeny Table log_zeny_db: zenylog // MVP Drop Table log_mvpdrop_db: mvplog // GM Log Table log_gm_db: atcommandlog // NPC Log Table log_npc_db: npclog // CHAT Log Table log_chat_db: chatlog // Dead Branch Log File log_branch_file: log/branchlog.log // Drops & Pickups Log File log_pick_file: log/picklog.log // Zeny Log File log_zeny_file: log/zenylog.log // MVP Drop File log_mvpdrop_file: log/mvplog.log // GM Log File log_gm_file: log/atcommandlog.log // NPC Log File log_npc_file: log/npclog.log // CHAT Log File log_chat_file: log/chatlog.log import: conf/import/log_conf.txt
  18. trunk/npc/custom/quests/quest_shop.txt
  19. trunk/npc/merchants/refine.txt Find: mes "["+getarg(0)+"]"; successrefitem .@part; emotion e_heh; Replace: mes "["+getarg(0)+"]"; successrefitem .@part; if (getequiprefinerycnt(.@part) >= 6) announce "Congratulations to "+strcharinfo(0)+" for successfully refined "+getequipname(.@part)+" to +"+getequiprefinerycnt(.@part)+"!",0; emotion e_heh;
  20. Yes it's normal. And VPS host in US is not a reason for not being able to get lag ingame.
  21. It's because you're asking to make it 0 delay. -.-
  22. You need to download the source mod and patch it.
  23. trunk/db/re/skill_cast_db.txt Find: //-- WL_JACKFROST 2204,2000:2500:3000:3500:4000,1000,0,10000:15000:20000:25000:30000,0,0,1000 Change to: //-- WL_JACKFROST 2204,2000:2500:3000:3500:4000,0,0,10000:15000:20000:25000:30000,0,0,1000
  24. That feature isn't 100% working yet.
  25. Put this below OnPCKillEvent: if ( getgmlevel() >= 20 ) end;
×
×
  • Create New...