Petey Pablo
-
Content Count
224 -
Joined
-
Last visited
Posts posted by Petey Pablo
-
-
How to make zeny reward from 1,000z 10,000z to 5,000,000 and 50,000,000?
//===== Hercules Script ====================================== //= Treasure Hunter Quests //===== By: ================================================== //= Fredzilla //===== Current Version: ===================================== //= 1.2a //===== Description: ========================================= //= Start for Treasure hunter quests //===== Additional Comments: ================================= //= Event_THQS - Used to check if you have already registered //= #Treasure_Token - used to keep track of tokens //= 1.0 - Straight conversion of Aegis NPC file //= 1.1 - balanced some prices, fixed 1 missing label //= removed Executioner&Mysteltain swords [Lupus] //= 1.2 - Optmized and fixed small error [Panikon] //= 1.2a - Fixed zeny formula [Panikon] //============================================================ prt_in,159,172,0 warp thqwrp 3,3,yuno_in01,123,155 // Main configuration object - script THQS#Configuration FAKE_NPC,{ OnInit: // Axes setarray $THQS_menu_weapons_1[0], Sabbath, Slaughter, Tomahawk, Great_Axe, Guillotine; setarray $THQS_menu_price_1[0], 160, 160, 180, 200, 200; // One Handed Swords setarray $THQS_menu_weapons_2[0], Edge, Solar_Sword, Scissores_Sword, Nagan, Immaterial_Sword, Excalibur, Byeorrun_Gum, Tale_Fing_; setarray $THQS_menu_price_2[0], 130, 150, 170, 180, 200, 200, 240, 320; // Two Handed Swords setarray $THQS_menu_weapons_3[0],Dragon_Slayer, Schweizersabel, Katzbalger, Muramasa, Masamune, Balmung; setarray $THQS_menu_price_3[0], 140,200,300,300,400,2000; // Books setarray $THQS_menu_weapons_4[0],Book_Of_Blazing_Sun, Book_Of_Billows, Book_Of_Gust_Of_Wind, Book_Of_Mother_Earth, Book_Of_The_Apocalypse, Bible, Tablet; setarray $THQS_menu_price_4[0], 80, 80, 80, 80, 80, 90, 120; // Bows setarray $THQS_menu_weapons_5[0], Bow_Of_Rudra, Bow_Of_Roguemaster; setarray $THQS_menu_price_5[0], 150, 150; // Katars setarray $THQS_menu_weapons_6[0], Katar_Of_Cold_Icicle,Katar_Of_Thornbush,Katar_Of_Raging_Blaze,Katar_Of_Piercing_Wind,Ghoul_Leg,Infiltrator; setarray $THQS_menu_price_6[0],70,70,70,70,125,150; // Knuckles setarray $THQS_menu_weapons_7[0],Kaiser_Knuckle,Berserk; setarray $THQS_menu_price_7[0],75,75; // Maces setarray $THQS_menu_weapons_8[0],Spike,Slash,Grand_Cross,Quadrille,Mjolnir; setarray $THQS_menu_price_8[0],65,90,100,110,1000; // Whips setarray $THQS_menu_weapons_9[0],Rapture_Rose,Chemeti; setarray $THQS_menu_price_9[0],50,65; // Wands setarray $THQS_menu_weapons_10[0],Mighty_Staff,Wizardy_Staff,Bone_Wand,Staff_Of_Soul; setarray $THQS_menu_price_10[0],90,150,110,120; // Cards setarray $THQS_menu_cards[0],Poring_Card, Pasana_Card, Dokebi_Card, Sword_Fish_Card, Sand_Man_Card, Drainliar_Card, Kaho_Card,Mandragora_Card,Vadon_Card,Mummy_Card,Zenorc_Card,Condor_Card, Zombie_Card; setarray $THQS_menu_price[0],2,420,420,420,420,360,360,360,360,540,240,240,210; end; } // Trades tokens // getarg(0) - number of tokens to be traded function script thqs_trade_token { @type = getarg(0); if( @type == 4 ) close; // 10^0, 10^1, 10^2 @type -= 1; @price = pow(10, @type); // 10^3, 10^4, 10^5 @type += 3; // So we can use pow later to determine the qt of Zeny @prize = pow(10, @type); if( #Treasure_Token < @price ) { mes "You don't have enough tokens!"; close; } if( Zeny == MAX_ZENY ) { mes "You can't add more zeny to your character"; close; } Zeny += @prize; #Treasure_Token -= @price; close; } // Creates a buying menu // getarg(0) - .@mw$ -> ID // getarg(1) - .@mp$ -> PRICE function script thqs_menu_buy { if( getargcount() != 2 ) { debugmes "thqs_menu_buy: Wrong number of arguments!!"; close; } .@mw$ = getarg(0); .@mp$ = getarg(1); if( getarraysize( getd(.@mw$) ) != getarraysize( getd(.@mp$) ) ) { debugmes "thqs_menu_buy: Missing entries in data!"; close; } // Dynamic menu // Uses a dynamic string and then applies it to a *select .@select_menu$ = ""; for( .@i = 0; .@i < getarraysize( getd(.@mw$) ); .@i++ ) { .@price = getd(.@mp$+"["+.@i+"]"); if( .@select_menu$ != "") .@select_menu$ = .@select_menu$+":"+getitemname( getd(.@mw$+"["+.@i+"]") )+" - "+.@price+"T"; else .@select_menu$ = getitemname( getd(.@mw$+"["+.@i+"]") )+" - "+.@price+"T"; } .@select_menu$ = .@select_menu$ + ":Nevermind"; select(.@select_menu$); if( @menu == (.@i+1) ) close; @index = @menu - 1; // Arrays are 0 indexed while our menu is not @item_id = getd(.@mw$+"["+@index+"]"); @price = getd(.@mp$+"["+@index+"]"); if( #Treasure_Token < @price ) { mes "You don't have enough tokens!"; close; } #Treasure_Token -= @price; logmes "Treasure Token: Bought a "+getitemname(@item_id); getitem @item_id,1; close; } // Creates the first weapon menu // getarg(0) - @menu function script ths_menu_weapons { @first_option = getarg(0); if( @first_option == 11 ) close; mes "[Ash]"; mes "This is what we have to offer."+@first_option; next; // Array names so they can be used by thqs_menu_buy .@mw$ = "$THQS_menu_weapons_"+@first_option; .@mp$ = "$THQS_menu_price_"+@first_option; thqs_menu_buy(.@mw$,.@mp$); } // Main script prt_in,164,174,1 script Treasure Hunter's Shop 1_M_YOUNGKNIGHT,{ mes "[Ash]"; mes "Ahh, "+strcharinfo(0)+"! Welcome to the Offical Treasure Hunter's Guild Shop."; mes "You currently have ^FF0000"+#Treasure_Token+"^000000 treasure tokens!!!"; next; switch( select("How does this place work?","What do you have in stock?","Nevermind") ) { case 1: mes "[Ash]"; mes "Well you see here you can exchange your treasure hunter tokens for zeny or rare weapons forged by our blacksmiths."; mes " "; mes "Everything has its own price value and the only way you can get the tokens is by completing quests assigned to you,the system normally works like this."; mes " "; mes "The harder the mission the more Tokens you will earn. All red quests are worth 4-8 Tokens, and the rest are worth 1-5."; mes " "; mes "Hope that solves your problem and questions."; close; case 2: break; case 3: close; } mes "[Ash]"; mes "Ok here is our Big list of goods."; mes " "; mes "(Note T stands for a Treasure Token.)"; next; mes "[Ash]"; mes "This is what we have to offer."; next; switch( select("Trade for zeny", "Trade for Weapons", "Trade for Cards", "Nevermind") ) { case 1: select("1000z - 1T","10000z - 10T","100000z - 100T","Nevermind"); thqs_trade_token(@menu); case 2: mes "[Ash]"; mes "This is what we have to offer."; next; select("Axe's","1 Handed Swords","2 Handed Swords","Book's","Bow's","Katar's","Knuckle's","Mace's","Whips","Wands","Nevermind"); ths_menu_weapons(@menu); case 3: mes "[Ash]"; mes "This is what we have to offer."; next; thqs_menu_buy("$THQS_menu_cards","$THQS_menu_price"); case 4: close; } end; }
-
-
Please update the hit-delay to latest hercules
Im experiencing bug with the hit-delay when you die and go to save point is not work and you still in 5 seconds delay.
I believe that is normal is the normal behavior even in the first version of hit-delay plugin?
Before is not like that. Only being hit for the 5 sec delay. Not after you died still counting 5 sec then need to reconnect to go last save point.
-
Please update the hit-delay to latest hercules
hit-delay.c: In function ‘server_preinit’: hit-delay.c:226:70: error: macro "addBattleConf" requires 4 arguments, but only 3 given addBattleConf("warp_delay",go_warp_delay_bc, go_warp_delay_return_bc); ^ hit-delay.c:226:2: error: ‘addBattleConf’ undeclared (first use in this function) addBattleConf("warp_delay",go_warp_delay_bc, go_warp_delay_return_bc); ^ hit-delay.c:226:2: note: each undeclared identifier is reported only once for each function it appears in hit-delay.c:227:74: error: macro "addBattleConf" requires 4 arguments, but only 3 given addBattleConf("warp_delay_mob",go_warp_delay_bc, go_warp_delay_return_bc); ^ hit-delay.c:228:74: error: macro "addBattleConf" requires 4 arguments, but only 3 given addBattleConf("warp_delay_pet",go_warp_delay_bc, go_warp_delay_return_bc); ^ hit-delay.c:229:76: error: macro "addBattleConf" requires 4 arguments, but only 3 given addBattleConf("warp_delay_homun",go_warp_delay_bc, go_warp_delay_return_bc); ^ hit-delay.c:230:75: error: macro "addBattleConf" requires 4 arguments, but only 3 given addBattleConf("warp_delay_merc",go_warp_delay_bc, go_warp_delay_return_bc); ^ hit-delay.c:231:77: error: macro "addBattleConf" requires 4 arguments, but only 3 given addBattleConf("warp_delay_others",go_warp_delay_bc, go_warp_delay_return_bc); ^ make[1]: *** [../../plugins/hit-delay.so] Error 1 make[1]: Leaving directory `/home/willro/Hercules/src/plugins' make: *** [plugins] Error 2
ExtendedVending too
ExtendedVending.c: In function ‘server_preinit’: ExtendedVending.c:776:54: error: macro "addBattleConf" requires 4 arguments, but only 3 given addBattleConf("extended_vending",ev_bc, ev_return_bc); ^ ExtendedVending.c:776:2: error: ‘addBattleConf’ undeclared (first use in this function) addBattleConf("extended_vending",ev_bc, ev_return_bc); ^ ExtendedVending.c:776:2: note: each undeclared identifier is reported only once for each function it appears in ExtendedVending.c:777:55: error: macro "addBattleConf" requires 4 arguments, but only 3 given addBattleConf("show_item_vending",ev_bc, ev_return_bc); ^ ExtendedVending.c:778:53: error: macro "addBattleConf" requires 4 arguments, but only 3 given addBattleConf("ex_vending_info",ev_bc, ev_return_bc); ^ ExtendedVending.c:779:47: error: macro "addBattleConf" requires 4 arguments, but only 3 given addBattleConf("item_zeny",ev_bc, ev_return_bc); ^ ExtendedVending.c:780:47: error: macro "addBattleConf" requires 4 arguments, but only 3 given addBattleConf("item_cash",ev_bc, ev_return_bc); ^ make[1]: *** [../../plugins/ExtendedVending.so] Error 1 make[1]: Leaving directory `/home/willro/Hercules/src/plugins'
Afk too
afk.c: In function ‘server_preinit’: afk.c:140:67: error: macro "addBattleConf" requires 4 arguments, but only 3 given addBattleConf("afk_timeout",afk_timeout_adjust,afk_timeout_return); ^ afk.c:140:2: error: ‘addBattleConf’ undeclared (first use in this function) addBattleConf("afk_timeout",afk_timeout_adjust,afk_timeout_return); ^ afk.c:140:2: note: each undeclared identifier is reported only once for each function it appears in make[1]: *** [../../plugins/afk.so] Error 1 make[1]: Leaving directory `/home/willro/Hercules/src/plugins' make: *** [plugins] Error 2
Hi there this fix my problem (But im not so sure if this is the right way)
every error u see is about addbattleconf, for example this one.
addBattleConf("warp_delay",go_warp_delay_bc, go_warp_delay_return_bc);you need to add "false" on the last part just like thisaddBattleConf("warp_delay",go_warp_delay_bc, go_warp_delay_return_bc,false);goodluck
Im experiencing bug with the hit-delay when you die and go to save point is not work and you still in 5 seconds delay.
-
i just updated to Thor_Patcher[2.6.4.13b] and everything works fine now /no1
i've experience it too with Thor_Pacther[2.6.4.9]. but, mine works with version [2.6.4.8]. just u need to run the patcher as administrator. u should try on version how it does.
im also experiencing this on Thor_Patcher[2.6.4.10]I think there a problem when using the Start func becuase the exe didnt popup when tryed using 2.6.4.9 to 2.6.4.12 but if i try 2.6.4.8 the exe will popup normally.
when i press the start button nothing happens.. is this fixed on other version?
How about patcher self update? I have same version of Thor_Patcher[2.6.4.13b] but the self update is now working.
-
Please update the hit-delay to latest hercules
hit-delay.c: In function ‘server_preinit’: hit-delay.c:226:70: error: macro "addBattleConf" requires 4 arguments, but only 3 given addBattleConf("warp_delay",go_warp_delay_bc, go_warp_delay_return_bc); ^ hit-delay.c:226:2: error: ‘addBattleConf’ undeclared (first use in this function) addBattleConf("warp_delay",go_warp_delay_bc, go_warp_delay_return_bc); ^ hit-delay.c:226:2: note: each undeclared identifier is reported only once for each function it appears in hit-delay.c:227:74: error: macro "addBattleConf" requires 4 arguments, but only 3 given addBattleConf("warp_delay_mob",go_warp_delay_bc, go_warp_delay_return_bc); ^ hit-delay.c:228:74: error: macro "addBattleConf" requires 4 arguments, but only 3 given addBattleConf("warp_delay_pet",go_warp_delay_bc, go_warp_delay_return_bc); ^ hit-delay.c:229:76: error: macro "addBattleConf" requires 4 arguments, but only 3 given addBattleConf("warp_delay_homun",go_warp_delay_bc, go_warp_delay_return_bc); ^ hit-delay.c:230:75: error: macro "addBattleConf" requires 4 arguments, but only 3 given addBattleConf("warp_delay_merc",go_warp_delay_bc, go_warp_delay_return_bc); ^ hit-delay.c:231:77: error: macro "addBattleConf" requires 4 arguments, but only 3 given addBattleConf("warp_delay_others",go_warp_delay_bc, go_warp_delay_return_bc); ^ make[1]: *** [../../plugins/hit-delay.so] Error 1 make[1]: Leaving directory `/home/willro/Hercules/src/plugins' make: *** [plugins] Error 2
ExtendedVending too
ExtendedVending.c: In function ‘server_preinit’: ExtendedVending.c:776:54: error: macro "addBattleConf" requires 4 arguments, but only 3 given addBattleConf("extended_vending",ev_bc, ev_return_bc); ^ ExtendedVending.c:776:2: error: ‘addBattleConf’ undeclared (first use in this function) addBattleConf("extended_vending",ev_bc, ev_return_bc); ^ ExtendedVending.c:776:2: note: each undeclared identifier is reported only once for each function it appears in ExtendedVending.c:777:55: error: macro "addBattleConf" requires 4 arguments, but only 3 given addBattleConf("show_item_vending",ev_bc, ev_return_bc); ^ ExtendedVending.c:778:53: error: macro "addBattleConf" requires 4 arguments, but only 3 given addBattleConf("ex_vending_info",ev_bc, ev_return_bc); ^ ExtendedVending.c:779:47: error: macro "addBattleConf" requires 4 arguments, but only 3 given addBattleConf("item_zeny",ev_bc, ev_return_bc); ^ ExtendedVending.c:780:47: error: macro "addBattleConf" requires 4 arguments, but only 3 given addBattleConf("item_cash",ev_bc, ev_return_bc); ^ make[1]: *** [../../plugins/ExtendedVending.so] Error 1 make[1]: Leaving directory `/home/willro/Hercules/src/plugins'
Afk too
afk.c: In function ‘server_preinit’: afk.c:140:67: error: macro "addBattleConf" requires 4 arguments, but only 3 given addBattleConf("afk_timeout",afk_timeout_adjust,afk_timeout_return); ^ afk.c:140:2: error: ‘addBattleConf’ undeclared (first use in this function) addBattleConf("afk_timeout",afk_timeout_adjust,afk_timeout_return); ^ afk.c:140:2: note: each undeclared identifier is reported only once for each function it appears in make[1]: *** [../../plugins/afk.so] Error 1 make[1]: Leaving directory `/home/willro/Hercules/src/plugins' make: *** [plugins] Error 2
-
I can use @bst B>, @bst S> and @bst T>
but i cant use @bst B/T> and @bst S/T>
how to make @bst B/T> and S/T> work?
- script bst -1,{ OnCommand: if ( !getstrlen( .@atcmd_parameters$ ) ) { message strcharinfo(0), "Please, enter a message (usage: @bst <message>)."; end; } if (agitcheck()){ message strcharinfo(0), "Unable to use this command,"; message strcharinfo(0), "War of Emperium is ongoing!"; close; } $@input$ = implode(.@atcmd_parameters$," " ); $@name$ = strcharinfo(0); .@symbol$ = substr( .@atcmd_parameters$, 0,1 ); if ( .@symbol$ != "B>" && .@symbol$ != "S>" && .@symbol$ != "T>" && .@symbol$ != "B/T>" && .@symbol$ != "S/T>" ) { message strcharinfo(0), "Market symbol is needed when using this command."; message strcharinfo(0), "B> : Buying Symbol"; message strcharinfo(0), "S> : Selling Symbol"; message strcharinfo(0), "T> : Trading Symbol"; message strcharinfo(0), "B/T> : Buy & Trade Symbol"; message strcharinfo(0), "S/T> : Sell & Trade Symbol"; end; } if ( bst_delay + 60 > gettimetick(2) ) { message strcharinfo(0), "There is a 60 seconds delay of using this command again"; end; } query_sql ("SELECT `char`.`account_id` FROM `char` JOIN `login` ON `char`.`account_id` = `login`.`account_id` WHERE `char`.`online` = 1", .@account_id); bst_delay = gettimetick(2); // delay while ( .@i < getarraysize(.@account_id) ) { if ( attachrid( .@account_id[.@i] ) ) dispbottom "[ Market ] " + $@name$ + " : " + $@input$,0xFFD700; // display to every character on the server. detachrid; .@i++; } end; OnInit: bindatcmd "bst",strnpcinfo(0)+"::OnCommand", 0, 1; // bind @bst command. end; }
Same. How to make it work? Anyone?
-
-
It works. Big thanks for you man I appreciate your effort on this. I can not forget you XD
-
Correct me if i did wrong
Hope this works *tho, I never tried this one in-game*
insert this on your script
EDIT: i forgot to attach player id on getcharid
query_sql "SELECT `guild_lv` FROM `guild` WHERE `guild_id` = '" + getcharid(2, ""+strcharinfo(0)+"") + "'",.@gldlvl; if (.@gldlvl < 50) { mes "Sorry, your guild level didn't reach it's level requirement."; close; }
Insert in what line? Thanks man for the help.
Add it below this:
if ( !getcharid(2) ) { mes "[ Guild Package ]";mes "you must have a guild"; close; }
Not working
-
Correct me if i did wrong
Hope this works *tho, I never tried this one in-game*
insert this on your script
EDIT: i forgot to attach player id on getcharid
query_sql "SELECT `guild_lv` FROM `guild` WHERE `guild_id` = '" + getcharid(2, ""+strcharinfo(0)+"") + "'",.@gldlvl; if (.@gldlvl < 50) { mes "Sorry, your guild level didn't reach it's level requirement."; close; }
Insert in what line? Thanks man for the help.
-
Use sql query to determine guild level.
How? I don't have knowledge about that. Thanks man!
-
how to add required level 50 guild here
prontera,164,163,3 script Guild Package 4W_SAILOR,{ .@req_online = 2; // how many players need to online to claim. .@req_lv = MAX_LEVEL; // minimum level of .@online players that has to be. if ( !getcharid(2) ) { mes "[ Guild Package ]"; mes "you must have a guild"; close; } if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) { mes "[ Guild Package ]"; mes "you are not a guild master"; close; } getguildmember getcharid(2), 1; getguildmember getcharid(2), 2; for ( .@i = 0; .@i < $@guildmembercount; .@i++ ) if ( isloggedin( $@guildmemberaid[.@i], $@guildmembercid[.@i] ) ) .@online++; if ( .@online < .@req_online ) { mes "[ Guild Package ]"; mes "your guild must have "+ .@req_online +" guild members online"; close; } .@origin = getcharid(3); for ( .@i = 0; .@i < $@guildmembercount; .@i++ ) { if ( isloggedin( $@guildmemberaid[.@i], $@guildmembercid[.@i] ) ) { attachrid $@guildmemberaid[.@i]; if ( BaseLevel < .@req_lv ) { .@deny_name$[.@c] = strcharinfo(0); .@c++; } } } attachrid .@origin; if ( .@c ) { mes "[ Guild Package ]"; mes "there are "+ .@c +" member does not meet the level requirement"; mes implode( .@deny_name$, "," ); close; } for ( .@i = 0; .@i < $@guildmembercount; .@i++ ) { if ( isloggedin( $@guildmemberaid[.@i], $@guildmembercid[.@i] ) ) { attachrid $@guildmemberaid[.@i]; if ( #guild_package_claimed ) { .@deny_name$[.@c] = strcharinfo(0); .@c++; } } } attachrid .@origin; if ( .@c ) { mes "[ Guild Package ]"; mes "there are "+ .@c +" members already claimed this package within their account"; mes implode( .@deny_name$, "," ); close; } if ( query_sql( "select account_id as aaa, ( select last_ip from login where account_id = aaa ) as last_ip from guild_member where guild_id = "+ getcharid(2) +" group by last_ip", .@aid, .@ip$ ) < .@req_online ) { mes "[ Guild Package ]"; mes "same ip detected"; .@nb = query_sql( "select name, account_id as aaa, ( select last_ip from login where account_id = aaa ) as last_ip from guild_member where guild_id = "+ getcharid(2), .@name$, .@aid, .@ip$ ); for ( .@i = 0; .@i < .@nb; .@i++ ) mes "[ Guild Package ]"; mes (.@i +1)+". "+ .@name$[.@i] +" ("+ .@ip$ +")"; next; } mes "[ Guild Package ]"; mes "Congratulations! Your Gpack has been claimed!"; for ( .@i = 0; .@i < $@guildmembercount; .@i++ ) { if ( isloggedin( $@guildmemberaid[.@i], $@guildmembercid[.@i] ) ) { attachrid $@guildmemberaid[.@i]; if ( getguildmasterid( getcharid(2) ) != $@guildmembercid[.@i] ) getitem 14232, 100; // Yggberry Box else getitem 14232, 100; // Yggberry Box getitem 30110, 100; // Box Of Thunder Box getitem 14004, 100; // EDP Box getitem 31051, 20; // Credits getitem 4302, 1; // Tao Gunka getitem 4305, 2; // Turtle getitem 4121, 2; // Phreeoni getitem 4174, 1; // Deviling getitem 4047, 1; // Ghostring getitem 4128, 1; // GTB getitem 4146, 1; // Maya getitem 4352, 1; // Gen Egnihem getitem 7227, 100; // Voting Proof Ticket #guild_package_claimed = 1; } } attachrid .@origin; close; }
-
How to add required guild level 50 here
prontera,164,163,3 script Guild Package 4W_SAILOR,{ .@req_online = 2; // how many players need to online to claim. .@req_lv = MAX_LEVEL; // minimum level of .@online players that has to be. if ( !getcharid(2) ) { mes "[ Guild Package ]"; mes "you must have a guild"; close; } if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) { mes "[ Guild Package ]"; mes "you are not a guild master"; close; } getguildmember getcharid(2), 1; getguildmember getcharid(2), 2; for ( .@i = 0; .@i < $@guildmembercount; .@i++ ) if ( isloggedin( $@guildmemberaid[.@i], $@guildmembercid[.@i] ) ) .@online++; if ( .@online < .@req_online ) { mes "[ Guild Package ]"; mes "your guild must have "+ .@req_online +" guild members online"; close; } .@origin = getcharid(3); for ( .@i = 0; .@i < $@guildmembercount; .@i++ ) { if ( isloggedin( $@guildmemberaid[.@i], $@guildmembercid[.@i] ) ) { attachrid $@guildmemberaid[.@i]; if ( BaseLevel < .@req_lv ) { .@deny_name$[.@c] = strcharinfo(0); .@c++; } } } attachrid .@origin; if ( .@c ) { mes "[ Guild Package ]"; mes "there are "+ .@c +" member does not meet the level requirement"; mes implode( .@deny_name$, "," ); close; } for ( .@i = 0; .@i < $@guildmembercount; .@i++ ) { if ( isloggedin( $@guildmemberaid[.@i], $@guildmembercid[.@i] ) ) { attachrid $@guildmemberaid[.@i]; if ( #guild_package_claimed ) { .@deny_name$[.@c] = strcharinfo(0); .@c++; } } } attachrid .@origin; if ( .@c ) { mes "[ Guild Package ]"; mes "there are "+ .@c +" members already claimed this package within their account"; mes implode( .@deny_name$, "," ); close; } if ( query_sql( "select account_id as aaa, ( select last_ip from login where account_id = aaa ) as last_ip from guild_member where guild_id = "+ getcharid(2) +" group by last_ip", .@aid, .@ip$ ) < .@req_online ) { mes "[ Guild Package ]"; mes "same ip detected"; .@nb = query_sql( "select name, account_id as aaa, ( select last_ip from login where account_id = aaa ) as last_ip from guild_member where guild_id = "+ getcharid(2), .@name$, .@aid, .@ip$ ); for ( .@i = 0; .@i < .@nb; .@i++ ) mes "[ Guild Package ]"; mes (.@i +1)+". "+ .@name$[.@i] +" ("+ .@ip$ +")"; next; } mes "[ Guild Package ]"; mes "Congratulations! Your Gpack has been claimed!"; for ( .@i = 0; .@i < $@guildmembercount; .@i++ ) { if ( isloggedin( $@guildmemberaid[.@i], $@guildmembercid[.@i] ) ) { attachrid $@guildmemberaid[.@i]; if ( getguildmasterid( getcharid(2) ) != $@guildmembercid[.@i] ) getitem 14232, 100; // Yggberry Box else getitem 14232, 100; // Yggberry Box getitem 30110, 100; // Box Of Thunder Box getitem 14004, 100; // EDP Box getitem 31051, 20; // Credits getitem 4302, 1; // Tao Gunka getitem 4305, 2; // Turtle getitem 4121, 2; // Phreeoni getitem 4174, 1; // Deviling getitem 4047, 1; // Ghostring getitem 4128, 1; // GTB getitem 4146, 1; // Maya getitem 4352, 1; // Gen Egnihem getitem 7227, 100; // Voting Proof Ticket #guild_package_claimed = 1; } } attachrid .@origin; close; }
-
Not sure how linking works, but hoping this is good enough: http://pastebin.com/uX9uigAu
//===== Hercules Script ====================================== //== Thirds Freebies ========================================= //===== By: ================================================== //== True Zeal =============================================== //===== Description: ========================================= //== Links for Zeny //============================================================ prontera,150,150,3 script Link 4 Zeny 4_F_ELEPHANT,{ // Set name of npc to that of it's NPC name (Link 4 Zeny) .@name$ = "[" + strcharinfo(1) + "]"; // Sets price in zeny .price = 100000; // Sets effect sprite .effect = 503; mes .@name$; mes "Would you like to be linked? Costs " + .price + "z.;"; next; switch(select("Yes:No")){ case 1: if (Zeny >= .price) { Zeny -= .price; skilleffect .effect,0; sc_start SC_SOULLINK,350000,5; close; } else { mes .@name$; mes "You don't have enough zeny!"; close; } break; case 2: close; break; } }
How to add correct soul link in every job? Thank bro!
-
Anyone can help me to fix this issue?
Error: Flux_Error Message: MySQL error (SQLSTATE: 42S22, ERROR: 1054): Unknown column 'type' in 'field list' File: /var/www/html/lib/Flux/Connection/Statement.php:27 File Line Function/Method /var/www/html/addons/vote_for_credits/lib/cashpoints.php 61 Flux_Connection_Statement::execute() /var/www/html/addons/vote_for_credits/lib/cashpoints.php 17 Cashpoints::initCash() /var/www/html/addons/vote_for_credits/modules/vote/index.php 43 Cashpoints::getCash() /var/www/html/lib/Flux/Template.php 375 include() /var/www/html/lib/Flux/Dispatcher.php 170 Flux_Template::render() /var/www/html/index.php 180 Flux_Dispatcher::dispatch() Exception Trace As String #0 /var/www/html/addons/vote_for_credits/lib/cashpoints.php(61): Flux_Connection_Statement->execute(Array) #1 /var/www/html/addons/vote_for_credits/lib/cashpoints.php(17): Cashpoints->initCash('2000000') #2 /var/www/html/addons/vote_for_credits/modules/vote/index.php(43): Cashpoints->getCash('2000000') #3 /var/www/html/lib/Flux/Template.php(375): include('/var/www/html/a...') #4 /var/www/html/lib/Flux/Dispatcher.php(170): Flux_Template->render() #5 /var/www/html/index.php(180): Flux_Dispatcher->dispatch(Array)
-
The addon is using an old global_reg_value table how to change to latest herc table acc_reg_num_db table? Thank you very much
-
Anyone can help to make a soul linker npc with zeny cost. Thank you!
-
maybe you're trying to change into (Union) mode.
Do you know how to change by using command or jobmaster?
@job 4047 will do.
That is the ID of Taekwon Master. How to change job to Star Gladiator? I use command @job 4048 and @jobchange 4048 but says You can not change to this job by command even in jobmaster npc says No more jobs available.
WTF? Star Gladiator (kRO Name) = Taekwon Master (iRO Name), it is the SAME JOB '-'
You can't turn in union by this way, because this ID is just a placeholder, to keep the Union state working.
How to go Star Gladiator with the skills comfort of the star, hatred of sun, moon and stars, union etc?
Closed topic. Fixed!
-
The 4047 is the ID of Star Gladiator you have to check @Job and check check their corresponding id.
Yes. I saw that is Star Glad. But where is the union skill? Check this screenshot
-
maybe you're trying to change into (Union) mode.
Do you know how to change by using command or jobmaster?
@job 4047 will do.
That is the ID of Taekwon Master. How to change job to Star Gladiator? I use command @job 4048 and @jobchange 4048 but says You can not change to this job by command even in jobmaster npc says No more jobs available.
-
maybe you're trying to change into (Union) mode.
Do you know how to change by using command or jobmaster?
-
Why says you can't job change by command? I use level 99 gm
-
I already follow the instruction from wiki but still not work. Im using latest revision. See the configuration below!
scr/common/mmo.h</p>#define MAX_LEVEL 1000
change 99 to 255 at db/exp.txt
//Base - Trans Jobs255,4001:4002:4003:4004:4005:4006:4007:4008:4009:4010:4011:4012:4013:4014:4015:4016:4017:4018:4019:4020:4021:4022 bla bla
and also change to conf/map/battlemax_lv: 255
I don't know what is wrong. Please help me!
Close topic. Fixed issue!
Need help to edit Treasure Hunter Shop
in Script Support
Posted · Edited by Will Su
Thank you again man. You help me a lot. What is your facebook maybe I can add as friend xD