Jump to content

quesoph

Members
  • Content Count

    562
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by quesoph

  1. OnNpcKillEvent: if ( killedrid == 1159 ) { // 1159 is phreeoni's monster ID. dispbottom "You killed Phreeoni"; set #MVPPOINTS, #MVPOINTS + 1; // +1 MVP Points if you kill phreeoni. end; }
  2. You can customize the delay in: ../battle/custom.conf //--------------------------------------------------------------// Hercules Battle Configuration File//--------------------------------------------------------------// Warp and Go delay in miliseconds ( 5000 = 5 Seconds )// Official is 0gowarp_delay: 5000 Credits: Ind Modified by: quesoph go and warp delay.diff
  3. You can enable or disable the cash / item in file db/item_vending.txt 5.PNG Vending title can be looks like: "[ITEM_ID] name" 2.PNG Version 1.8 preview: 3.PNG db/item_vending.txt Modify your client data files: idnum2itemdisplaynametable.txt idnum2itemresnametable.txt Ragexe 2013 ( haven't tested it with Ragexe 2012 ) System/Iteminfo.lub or System/Iteminfo.lua Update: item_db2.txt should be: Creator: Lilith Modified by: dastgir and quesoph *Warning: It will not work with auto trade persistency. Hercules Rev 14041. Extended Vending System Hercules Rev 14041.patch Hercules Rev 14395. Extended Vending System Hercules Rev 14395.patch
  4. Great map. i like it! thank you!
  5. In your terminal goto your server eg: cd /Desktop/Hercules then type in ulimit -c unlimited
  6. Index: conf/battle.conf===================================================================--- conf/battle.conf (revision 12062)+++ conf/battle.conf (working copy)@@ -58,4 +58,4 @@ import: conf/battle/misc.conf //Your custom config goes here.-import: conf/import/battle_conf.txt+import: conf/battle/custom.confIndex: conf/battle/custom.conf===================================================================--- conf/battle/custom.conf (revision 0)+++ conf/battle/custom.conf (working copy)@@ -0,0 +1,7 @@+//--------------------------------------------------------------+// Hercules Battle Configuration File+//--------------------------------------------------------------++// Warp and Go delay in miliseconds ( 5000 = 5 Seconds )+// Official is 0+gowarp_delay: 5000 No newline at end of fileIndex: src/map/atcommand.c===================================================================--- src/map/atcommand.c (revision 12062)+++ src/map/atcommand.c (working copy)@@ -426,6 +431,10 @@ clif->message(fd, msg_txt(248)); return false; }+ if( !pc->get_group_level(sd) && DIFF_TICK(iTimer->gettick(),sd->canlog_tick) < battle_config.gowarp_delay ) {+ clif->message(fd,"@warp cannot be issued since you were into battle recently");+ return false;+ } if (pc->setpos(sd, mapindex, x, y, CLR_TELEPORT) != 0) { clif->message(fd, msg_txt(1)); // Map not found. return false;@@ -1755,6 +1780,11 @@ memset(map_name, '0', sizeof(map_name)); memset(atcmd_output, '0', sizeof(atcmd_output)); + if( !pc->get_group_level(sd) && DIFF_TICK(iTimer->gettick(),sd->canlog_tick) < battle_config.gowarp_delay ) {+ clif->message(fd,"@go cannot be issued since you were into battle recently");+ return -1;+ }+ // get the number town = atoi(message); Index: src/map/battle.c===================================================================--- src/map/battle.c (revision 12062)+++ src/map/battle.c (working copy)@@ -6486,6 +6527,7 @@ { "gm_ignore_warpable_area", &battle_config.gm_ignore_warpable_area, 0, 2, 100, }, { "packet_obfuscation", &battle_config.packet_obfuscation, 1, 0, 3, }, { "client_accept_chatdori", &battle_config.client_accept_chatdori, 0, 0, INT_MAX, },+ { "gowarp_delay", &battle_config.gowarp_delay, 0, 0, INT_MAX, }, }; #ifndef STATS_OPT_OUT /**Index: src/map/battle.h===================================================================--- src/map/battle.h (revision 12062)+++ src/map/battle.h (working copy)@@ -453,7 +453,7 @@ int gm_ignore_warpable_area; int client_accept_chatdori; // [Ai4rei/Mirei]- + int gowarp_delay; } battle_config; Index: src/map/pc.c===================================================================--- src/map/pc.c (revision 12062)+++ src/map/pc.c (working copy)@@ -6630,6 +6648,8 @@ elemental_set_target(sd,src); sd->canlog_tick = iTimer->gettick();+ if( src->type == BL_PC )+ ((TBL_PC*)src)->canlog_tick = iTimer->gettick(); } /*==========================================
  7. quesoph

    Locator NPC

    prontera,149,172,3 script testetsttest 100,{ mes "Tell me a player name to track. Must be an exact player name, cases included."; mes "I'll take "+ .cost +" Zeny even if the search fails.";if ( select ( "Go:Stop" ) == 2 ) close; if ( Zeny < .cost ) { mes "Not Enough Zeny."; close; } input .@name$; next; if (getmapxy(.@map$,.@x,.@y,0,.@name$) == -1) { mes "Sorry, I can't seem to find him!"; close; } mes "I found "+ .@name$ +" in "+ .@map$ +", "+ .@x +", "+ .@y +"."; mes "Hope you can find him too!"; set Zeny, Zeny - .cost; close; OnInit: set .cost, 50000; end;}
  8. quesoph

    Locator NPC

    prontera,149,172,3 script testetsttest 100,{ mes "Tell me a player name to track. Must be an exact player name, cases included."; mes "I'll take "+ .cost +" Zeny even if the search fails."; if ( select ( "Go:Stop" ) == 2 ) close; input .@name$; next; if (getmapxy(.@map$,.@x,.@y,0,.@name$) == -1) { mes "Sorry, I can't seem to find him!"; close; } mes "I found "+ .@name$ +" in "+ .@map$ +", "+ .@x +", "+ .@y +"."; mes "Hope you can find him too!"; set Zeny, Zeny - .cost; close; OnInit: set .cost, 50000; end;}
  9. quesoph

    Locator NPC

    set Zeny, Zeny - .@cost; should be set Zeny, Zeny - .cost;
  10. Wow! that's an ancient script.
  11. prontera,164,186,3 script Coin Trader 860,{ // ---------------------- // - Core Code // ---------------------- cutin "kafra_08",2; mes "[" + .colors$[1] + .npc_name$ + .colors$[0] + "]"; mes "What do you want to do today?"; set .@trade_type, select("Coins -> Zeny:Zeny -> Coins"); mes "Very well. Here is the list on how much each coin is worth:"; for (set .@a, 0; .@a < getarraysize(.coin_id); set .@a, .@a + 1) { mes .colors$[3 + .@a] + getitemname(.coin_id[.@a]) + .colors$[0] + ": " + .coin_to_zeny_format$[.@a] + "z"; set .@coin_menu$, .@coin_menu$ + (.@coin_menu$ == "" ? "" : ":") + .colors$[3 + .@a] + getitemname(.coin_id[.@a]) + .colors$[0]; } mes "Tell me, what coin would you like to exchange?"; next; set .@coin_choice, select(.@coin_menu$) - 1; next; mes "[" + .colors$[1] + .npc_name$ + .colors$[0] + "]"; switch(.@trade_type) { case 1: // Coins -> Zeny mes "How many coins would you like to give up?"; input .@amount; if (.@amount <= 0) { // Invalid Number? mes .colors$[2] + "Please Input a Number Greater Than 0"; cutin "",255; close; } else if ( Zeny == 2000000000 ) { mes .colors$[2] + "Cant go over 2 Billion..."; cutin "",255; close; } else if (countitem(.coin_id[.@coin_choice]) < .@amount) { mes .colors$[2] + "I'm sorry, you do not have " + .@amount + " " + getitemname(.coin_id[.@coin_choice]) + (.@amount == 1 ? "" : "s"); cutin "",255; close; } else { // Ok! Checks Passed, Let's Trade! set Zeny,Zeny + (.coin_to_zeny[.@coin_choice] * .@amount); delitem .coin_id[.@coin_choice],.@amount; cutin "",255; break; } case 2: // Zeny -> Coins mes "How many coins would you like?"; input .@amount; if (.@amount <= 0) { // Invalid Number? mes .colors$[2] + "Please Input a Number Greater Than 0"; cutin "",255; close; } else if (Zeny < .coin_to_zeny[.@coin_choice] * .@amount) { mes .colors$[2] + "I'm sorry, you do not have enough zeny..."; cutin "",255; close; } else { // Checks OK! Let's trade! set Zeny, Zeny - (.coin_to_zeny[.@coin_choice] * .@amount); getitem .coin_id[.@coin_choice], .@amount; cutin "",255; } } mes "[" + .colors$[1] + .npc_name$ + .colors$[0] + "]"; mes "Pleasure doing business with you."; close2; cutin "", 255; close; // ---------------------- // - Soft Code // ---------------------- OnInit: // Store NPC Name set .npc_name$, "Coin Master"; // Store Colors // default text, npc name, error, coin_type1, coin_type2, coin_type3, coin_type4, etc... // Note: If you plan on adding additional coins, simply add a new color here setarray .colors$[0],"^000000", "^336699", "^550000";//, "^996633", "^666666", "^FFFF66", "^99CCCC"; // Set Coin Item ID's // In Order coin_id1, coin_id2, coin_id3, coin_id4, etc... setarray .coin_id[0],20104, 20105, 20106;//, 674; // Coin -> Zeny Value setarray .coin_to_zeny[0],10000000,50000000,100000000;//,200000000; // Currency Formatted String of Zeny setarray .coin_to_zeny_format$[0],"10,000,000","50,000,000","100,000,000";//,"200,000,000";}
  12. What are these ' additional buffs ' ?
  13. {sc_start SC_FOOD_LUK,3600000,20;}
  14. I think this mod is not compatible with our current plugin system.
  15. " Disable Ragexe filename check "
  16. Wrong forum, this is the good guys community. lol
  17. nocashshop.patch or for pvp and gvg PS. I am not really good with src.
  18. So you want if you equip your top headgear with card that has +5 str. low and mid headgear card effect wont work ?
  19. Just use same database for the char-servers.
  20. if(getequipid(EQI_HEAD_TOP) || getequipid(EQI_HEAD_MID) || getequipid(EQI_HEAD_LOW)) { bonus bStr,5; } if (getequipid(EQI_ARMOR)) { bonus bVit,5;} if (getequipid(EQI_GARMENT)) { bonus bAgi,5;}
  21. - script Anti_Corrupt -1,{OnAtcommand: if (getmapxy(@mapname$,@mapx,@mapy,0,strcharinfo(0))!=0) goto Notfound; announce "[ "+strcharinfo(0)+" ] spawned a monster on "+@mapname$+" at X:"+@mapx+" Y:"+@mapy+" !",0; end;Notfound: mes "I can't seem to find the person anywhere!"; close;} You need source mod for this. @edit atcommand.c
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.