-
Posts
232 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Everything posted by nasagnilac
-
I download this but with this config but I still receive an error. { "resolution" : [ 1270, 1080 ], "data" : { "ropath" : "C:/Users/ROProvider/Desktop/test" "grfs" : [ "C:/Users/ROProvider/Desktop/test/default.grf" ] }, "moveconsole" : true, "defaultmap" : "prontera", } @vBrenth how did it work for you?
-
Hello everyone I am here to contribute in this forum. I am releasing my GvG Script to the public in able to enhanced and be improved. This script will help you lessen the work on having GvG/Team Vs GvG/Team Event. I hope some good script makers will help me simplify my work. Thank you !! I hope we can also revised it to automated script. GvG Event Script.txt
-
-
query_sql( "select `name` from `char` order by char_id asc", .@name$); query_sql "UPDATE (*) FROM `char SET `name` = 'name' + v2 "; OnDoChar: freeloop(1); for( set .@k, 0; .@k < 26; set .@k, .@k + 1 ){ query_sql( "select `name` from `char` order by char_id asc limit 127", .@name$); for( set .@i, 0; .@i < getarraysize(.@name$); set .@i, .@i + 1 ){ query_sql "UPDATE `char` SET `name` = '"+(.@name$[.@i] + v2)+"' WHERE `name` = '"+.@name$[.@i]+"'"; } } freeloop(0); end; I need your help. I want all names in the char table will be extended by v2. But I dont know if this one works. Can you please help me how I can add v2 in all names using script. I dont know where the 000000000000 numbers came from.
-
Database Merging Infinite Loop Problem HELP
nasagnilac replied to nasagnilac's question in Database Support
There's a problem I encountered. login and char it not same. So I made a new script please check it. - script commands -1,{ OnInit: set .limit,127; bindatcmd "update","commands::OnDoUPDATE",99,99; end; OnDoUPDATE: set .accid,2006800; set .charid,162000; freeloop(1); query_sql( "select account_id from `login` order by account_id asc", .@accid); query_sql( "select char_id from `char` order by char_id asc", .@charid); for( set .@p, 0; .@p < getarraysize(.@accid); set .@p, .@p + 1 ){ query_sql "UPDATE `char` SET `account_id` = '"+.accid+"' WHERE `account_id` = '"+.@accid[.@p]+"'"; query_sql "UPDATE `login` SET `account_id` = '"+.accid+"' WHERE `account_id` = '"+.@accid[.@p]+"'"; query_sql "UPDATE `global_reg_value` SET `account_id` = '"+.accid+"' WHERE `account_id` = '"+.@accid[.@p]+"'"; query_sql "UPDATE `guild_member` SET `account_id` = '"+.accid+"' WHERE `account_id` = '"+.@accid[.@p]+"'"; query_sql "UPDATE `pet` SET `account_id` = '"+.accid+"' WHERE `account_id` = '"+.@accid[.@p]+"'"; query_sql "UPDATE `sc_data` SET `account_id` = '"+.accid+"' WHERE `account_id` = '"+.@accid[.@p]+"'"; query_sql "UPDATE `storage` SET `account_id` = '"+.accid+"' WHERE `account_id` = '"+.@accid[.@p]+"'"; query_sql "UPDATE `vendings` SET `account_id` = '"+.accid+"' WHERE `account_id` = '"+.@accid[.@p]+"'"; set .accid,.accid+1; } for( set .@i, 0; .@i < getarraysize(.@charid); set .@i, .@i + 1 ){ query_sql "UPDATE `cart_inventory` SET `char_id` = '"+.charid+"' WHERE `char_id` = '"+.@charid[.@i]+"'"; query_sql "UPDATE `char` SET `char_id` = '"+.charid+"' WHERE `char_id` = '"+.@charid[.@i]+"'"; query_sql "UPDATE `global_reg_value` SET `char_id` = '"+.charid+"' WHERE `char_id` = '"+.@charid[.@i]+"'"; query_sql "UPDATE `homunculus` SET `char_id` = '"+.charid+"' WHERE `char_id` = '"+.@charid[.@i]+"'"; query_sql "UPDATE `inventory` SET `char_id` = '"+.charid+"' WHERE `char_id` = '"+.@charid[.@i]+"'"; query_sql "UPDATE `pet` SET `char_id` = '"+.charid+"' WHERE `char_id` = '"+.@charid[.@i]+"'"; query_sql "UPDATE `quest` SET `char_id` = '"+.charid+"' WHERE `char_id` = '"+.@charid[.@i]+"'"; query_sql "UPDATE `sc_data` SET `char_id` = '"+.charid+"' WHERE `char_id` = '"+.@charid[.@i]+"'"; query_sql "UPDATE `skill` SET `char_id` = '"+.charid+"' WHERE `char_id` = '"+.@charid[.@i]+"'"; set .charid,.charid+1; } freeloop(0); end; } Freeloop is not working. How can I freeloop it? -
- script commands -1,{ OnInit: set .limit,127; bindatcmd "update","commands::OnDoUPDATE",99,99; end; OnDoUPDATE: set .accid,2006800; set .charid,162000; for( set .@k, 0; .@k < .limit; set .@k, .@k + 1 ){ query_sql( "select account_id from `login` order by account_id asc limit 127", .@accid); for( set .@i, 0; .@i < getarraysize(.@accid); set .@i, .@i + 1 ){ query_sql "UPDATE `char` SET `account_id` = '"+.accid+"' WHERE `account_id` = '"+.@accid[.@i]+"'"; query_sql "UPDATE `login` SET `account_id` = '"+.accid+"' WHERE `account_id` = '"+.@accid[.@i]+"'"; query_sql "UPDATE `global_reg_value` SET `account_id` = '"+.accid+"' WHERE `account_id` = '"+.@accid[.@i]+"'"; query_sql "UPDATE `guild_member` SET `account_id` = '"+.accid+"' WHERE `account_id` = '"+.@accid[.@i]+"'"; query_sql "UPDATE `pet` SET `account_id` = '"+.accid+"' WHERE `account_id` = '"+.@accid[.@i]+"'"; query_sql "UPDATE `sc_data` SET `account_id` = '"+.accid+"' WHERE `account_id` = '"+.@accid[.@i]+"'"; query_sql "UPDATE `storage` SET `account_id` = '"+.accid+"' WHERE `account_id` = '"+.@accid[.@i]+"'"; query_sql "UPDATE `vendings` SET `account_id` = '"+.accid+"' WHERE `account_id` = '"+.@accid[.@i]+"'"; set .accid,.accid+1; } } for( set .@k, 0; .@k < .limit; set .@k, .@k + 1 ){ query_sql( "select char_id from `char` order by char_id asc limit 127", .@charid); for( set .@i, 0; .@i < getarraysize(.@charid); set .@i, .@i + 1 ){ query_sql "UPDATE `cart_inventory` SET `char_id` = '"+.charid+"' WHERE `char_id` = '"+.@charid[.@i]+"'"; query_sql "UPDATE `char` SET `char_id` = '"+.charid+"' WHERE `char_id` = '"+.@charid[.@i]+"'"; query_sql "UPDATE `global_reg_value` SET `char_id` = '"+.charid+"' WHERE `char_id` = '"+.@charid[.@i]+"'"; query_sql "UPDATE `homunculus` SET `char_id` = '"+.charid+"' WHERE `char_id` = '"+.@charid[.@i]+"'"; query_sql "UPDATE `inventory` SET `char_id` = '"+.charid+"' WHERE `char_id` = '"+.@charid[.@i]+"'"; query_sql "UPDATE `pet` SET `char_id` = '"+.charid+"' WHERE `char_id` = '"+.@charid[.@i]+"'"; query_sql "UPDATE `quest` SET `char_id` = '"+.charid+"' WHERE `char_id` = '"+.@charid[.@i]+"'"; query_sql "UPDATE `sc_data` SET `char_id` = '"+.charid+"' WHERE `char_id` = '"+.@charid[.@i]+"'"; query_sql "UPDATE `skill` SET `char_id` = '"+.charid+"' WHERE `char_id` = '"+.@charid[.@i]+"'"; set .charid,.charid+1; } } end; } I made a script where I can update ng char id, account id before merging the database. But I have problem. There is an infinite loop problem. I tried increasing the max getarraysize but there is an error. Please help me asap will to donate 3$ - 5$ if it works.
-
It works! Thank you emistry. But there is a problem. At this image you can see that only pantie is written there. It should be Pantie[2371] and Undershirt[2523]. How can I fix it to red multiple items. OnInit: // == <itemid><amount><refine> setarray .tier1[1],12412,1,1,1; setarray .tier2[1],2371,1,2,1,2523,1,7,1; setarray .tier3[1],1624,1,3,1; setarray .tier4[1],5518,1,4,1; setarray .tier5[1],5518,1,5,1; setarray .tier6[1],5518,1,6,1; setarray .tier7[1],5518,1,7,1; setarray .tier8[1],5518,1,8,1; setarray .tier9[1],5518,1,9,1; setarray .tier10[1],5518,1,10,1; end;
-
case 2: mes "[^0000ff TIER 1 ^000000]"; for( set .@i, 1; .@i < getarraysize(.tier1); set .@i, .@i + 3 ){ if(.tier1[.@i+3] == 1){ mes ""+((.tier1[.@i+2] >= 1)?"+"+.tier1[.@i+2]+" ":"")+""+getitemname(.tier1[.@i])+" x "+.tier1[.@i+1]+""; }else if(.tier1[.@i+3] == 2){ mes ""+((.tier1[.@i+2] >= 1)?"+"+.tier1[.@i+2]+" ":"")+"Costume's "+getitemname(.tier1[.@i])+" x "+.tier1[.@i+1]+""; } } mes " "; mes "[^0000ff TIER 2 ^000000]"; for( set .@i, 1; .@i < getarraysize(.tier2); set .@i, .@i + 3 ){ if(.tier2[.@i+3] == 1){ mes ""+((.tier2[.@i+2] >= 1)?"+"+.tier2[.@i+2]+" ":"")+""+getitemname(.tier2[.@i])+" x "+.tier2[.@i+1]+""; }else if(.tier2[.@i+3] == 2){ mes ""+((.tier2[.@i+2] >= 1)?"+"+.tier2[.@i+2]+" ":"")+"Costume's "+getitemname(.tier2[.@i])+" x "+.tier2[.@i+1]+""; } } mes " "; mes "[^0000ff TIER 3 ^000000]"; for( set .@i, 1; .@i < getarraysize(.tier3); set .@i, .@i + 3 ){ if(.tier3[.@i+3] == 1){ mes ""+((.tier3[.@i+2] >= 1)?"+"+.tier3[.@i+2]+" ":"")+""+getitemname(.tier3[.@i])+" x "+.tier3[.@i+1]+""; }else if(.tier3[.@i+3] == 2){ mes ""+((.tier3[.@i+2] >= 1)?"+"+.tier3[.@i+2]+" ":"")+"Costume's "+getitemname(.tier3[.@i])+" x "+.tier3[.@i+1]+""; } } mes " "; mes "[^0000ff TIER 4 ^000000]"; for( set .@i, 1; .@i < getarraysize(.tier4); set .@i, .@i + 3 ){ if(.tier4[.@i+3] == 1){ mes ""+((.tier4[.@i+2] >= 1)?"+"+.tier4[.@i+2]+" ":"")+""+getitemname(.tier4[.@i])+" x "+.tier4[.@i+1]+""; }else if(.tier4[.@i+3] == 2){ mes ""+((.tier4[.@i+2] >= 1)?"+"+.tier4[.@i+2]+" ":"")+"Costume's "+getitemname(.tier4[.@i])+" x "+.tier4[.@i+1]+""; } } mes " "; mes "[^0000ff TIER 5 ^000000]"; for( set .@i, 1; .@i < getarraysize(.tier5); set .@i, .@i + 3 ){ if(.tier5[.@i+3] == 1){ mes ""+((.tier5[.@i+2] >= 1)?"+"+.tier5[.@i+2]+" ":"")+""+getitemname(.tier5[.@i])+" x "+.tier5[.@i+1]+""; }else if(.tier5[.@i+3] == 2){ mes ""+((.tier5[.@i+2] >= 1)?"+"+.tier5[.@i+2]+" ":"")+"Costume's "+getitemname(.tier5[.@i])+" x "+.tier5[.@i+1]+""; } } mes " "; mes "[^0000ff TIER 6 ^000000]"; for( set .@i, 1; .@i < getarraysize(.tier6); set .@i, .@i + 3 ){ if(.tier6[.@i+3] == 1){ mes ""+((.tier6[.@i+2] >= 1)?"+"+.tier6[.@i+2]+" ":"")+""+getitemname(.tier6[.@i])+" x "+.tier6[.@i+1]+""; }else if(.tier6[.@i+3] == 2){ mes ""+((.tier6[.@i+2] >= 1)?"+"+.tier6[.@i+2]+" ":"")+"Costume's "+getitemname(.tier6[.@i])+" x "+.tier6[.@i+1]+""; } } mes " "; mes "[^0000ff TIER 7 ^000000]"; for( set .@i, 1; .@i < getarraysize(.tier7); set .@i, .@i + 3 ){ if(.tier7[.@i+3] == 1){ mes ""+((.tier7[.@i+2] >= 1)?"+"+.tier7[.@i+2]+" ":"")+""+getitemname(.tier7[.@i])+" x "+.tier7[.@i+1]+""; }else if(.tier7[.@i+3] == 2){ mes ""+((.tier7[.@i+2] >= 1)?"+"+.tier7[.@i+2]+" ":"")+"Costume's "+getitemname(.tier7[.@i])+" x "+.tier7[.@i+1]+""; } } mes " "; mes "[^0000ff TIER 8 ^000000]"; for( set .@i, 1; .@i < getarraysize(.tier8); set .@i, .@i + 3 ){ if(.tier8[.@i+3] == 1){ mes ""+((.tier8[.@i+2] >= 1)?"+"+.tier8[.@i+2]+" ":"")+""+getitemname(.tier8[.@i])+" x "+.tier8[.@i+1]+""; }else if(.tier8[.@i+3] == 2){ mes ""+((.tier8[.@i+2] >= 1)?"+"+.tier8[.@i+2]+" ":"")+"Costume's "+getitemname(.tier8[.@i])+" x "+.tier8[.@i+1]+""; } } mes " "; mes "[^0000ff TIER 9 ^000000]"; for( set .@i, 1; .@i < getarraysize(.tier9); set .@i, .@i + 3 ){ if(.tier9[.@i+3] == 1){ mes ""+((.tier9[.@i+2] >= 1)?"+"+.tier9[.@i+2]+" ":"")+""+getitemname(.tier9[.@i])+" x "+.tier9[.@i+1]+""; }else if(.tier9[.@i+3] == 2){ mes ""+((.tier9[.@i+2] >= 1)?"+"+.tier9[.@i+2]+" ":"")+"Costume's "+getitemname(.tier9[.@i])+" x "+.tier9[.@i+1]+""; } } mes " "; mes "[^0000ff TIER 10 ^000000]"; for( set .@i, 1; .@i < getarraysize(.tier10); set .@i, .@i + 3 ){ if(.tier10[.@i+3] == 1){ mes ""+((.tier10[.@i+2] >= 1)?"+"+.tier10[.@i+2]+" ":"")+""+getitemname(.tier10[.@i])+" x "+.tier10[.@i+1]+""; }else if(.tier10[.@i+3] == 2){ mes ""+((.tier10[.@i+2] >= 1)?"+"+.tier10[.@i+2]+" ":"")+"Costume's "+getitemname(.tier10[.@i])+" x "+.tier10[.@i+1]+""; } } mes " "; close; How can I simplify this script?
-
prontera,113,86,4 script Donate Manager 790,{ mes .npcname$; mes "What can I do for you?"; next; switch(select("Convert Credits to Cash Points"+((.tierpromo == 1)?":[^ff0000Promo^000000] Tiered Spender":"")+""+((getgmlevel() == 100)?":[^ff0000Reset^000000] Tier Points":"")+"")) { case 1: query_sql("SELECT `balance` FROM `cp_credits` WHERE `account_id` = '"+getcharid(3)+"'",.@balance); mes .npcname$; mes "^ff0000Account Information^000000"; mes "Total Credits: ^FF0000"+.@balance+"^000000"; mes "Total Cash Points: ^FF0000"+#CASHPOINTS+"^000000"; mes " "; mes "^00FF00Do you really want to covert your credits to Cash Points?^000000"; next; switch(select("Yes:No.")){ case 1: mes .npcname$; mes "^ff0000Account Information^000000"; mes "Total Credits: ^FF0000"+.@balance+"^000000"; mes "Total Cash Points: ^FF0000"+#CASHPOINTS+"^000000"; mes " "; mes "^0000FFChoose the amount you wanted to convert.^000000"; next; switch(select("10,000 CP + 1 Day VIP:20,000 CP + 3 Days VIP:40,000 CP + 7 Days VIP:Others")){ case 1: set .@credits,10000; set .@day,1; goto process; end; case 2: set .@credits,20000; set .@day,3; goto process; end; case 3: set .@credits,40000; set .@day,7; goto process; end; case 4: mes .npcname$; mes "^ff0000Account Information^000000"; mes "Total Credits: ^FF0000"+.@balance+"^000000"; mes "Total Cash Points: ^FF0000"+#CASHPOINTS+"^000000"; mes " "; mes "^0000FFInput the amount you wanted to convert.^000000"; next; input .@credits; goto process; end; } process: if(.@credits < 1){goto Invalid;} if(.@credits > .@balance){goto C_enough;} atcommand "@cash "+(.@credits + .@bonus)+""; if(.@day){ atcommand "@vip "+.@day+"d "+strcharinfo(0); } query_sql "update `cp_credits` set `balance` = `balance` - "+ .@credits +" where `account_id` = '"+getcharid(3)+"'"; mes .npcname$; mes "Thank you for using this service."; set #tieramount, #tieramount + .@credits; close; case 2: goto Thanks; end; } case 2: mes .npcname$; mes "Donate and covert your credits now. Have a chance to get free items depending to the credits amount you converted this month. The more credits you convert the coolest items you will get."; mes " "; next; switch(select("Open a tier:Tiers Reward List")){ case 1: mes .npcname$; mes "Converted Credits: "+#tieramount+""; next; switch(select("[T1] 10,000 or above:[T2] 25,000 or above:[T3] 50,000 or above:[T4] 75,000 or above:[T5] 100,000 or above:[T6] 125,000 or above:[T7] 150,000 or above:[T8] 175,000 or above:[T9] 200,000 or above:[T10] 250,000 or above")){ case 1: callsub S_TierReward,1,10000,.tier1,.tier1[.@i],.tier1[.@i+1],.tier1[.@i+2],.tier1[.@i+3]; break; case 2: callsub S_TierReward,2,25000,.tier2,.tier2[.@i],.tier2[.@i+1],.tier2[.@i+2],.tier2[.@i+3]; break; case 3: callsub S_TierReward,3,50000,.tier3,.tier3[.@i],.tier3[.@i+1],.tier3[.@i+2],.tier3[.@i+3]; break; case 4: callsub S_TierReward,4,75000,.tier4,.tier4[.@i],.tier4[.@i+1],.tier4[.@i+2],.tier4[.@i+3]; break; case 5: callsub S_TierReward,5,100000,.tier5,.tier5[.@i],.tier5[.@i+1],.tier5[.@i+2],.tier5[.@i+3]; break; case 6: callsub S_TierReward,6,125000,.tier6,.tier6[.@i],.tier6[.@i+1],.tier6[.@i+2],.tier6[.@i+3]; break; case 7: callsub S_TierReward,7,150000,.tier7,.tier7[.@i],.tier7[.@i+1],.tier7[.@i+2],.tier7[.@i+3]; break; case 8: callsub S_TierReward,8,175000,.tier8,.tier8[.@i],.tier8[.@i+1],.tier8[.@i+2],.tier8[.@i+3]; break; case 9: callsub S_TierReward,9,200000,.tier9,.tier9[.@i],.tier9[.@i+1],.tier9[.@i+2],.tier9[.@i+3]; break; case 10: callsub S_TierReward,10,250000,.tier10,.tier10[.@i],.tier10[.@i+1],.tier10[.@i+2],.tier10[.@i+3]; break; } S_TierReward: if(#tieramount >= getarg(1)){ if ( #tier == .tier[1]){ mes .npcname$; mes "Please claim first the "+(.tier[1]-1)+" Tier Rewards."; close; } mes .npcname$; mes "We sent your tier bonus trough our Reward NPC."; for( set .@i, 1; .@i < getarraysize(getarg(2)); set .@i, .@i + 3 ){ if(getarg(6) == 1){ getitem2 getarg(3),getarg(4),1,getarg(5),0,0,0,0,0; }else if(getarg(6) == 2){ atcommand "@costumeitem "+getarg(3); } } set #tier,#tier + 1; if (#tier >= 10){ set #tieramount, #tieramount - getarg(1); set #tier,0; } end; }else{ mes .npcname$; mes "Converted Cash Points is not enough."; close; } return; case 2: mes "[^0000ff TIER 1 ^000000]"; for( set .@i, 1; .@i < getarraysize(.tier1); set .@i, .@i + 4 ){ mes ""+((.tier1[.@i+2] >= 1)?"+"+.tier1[.@i+1]+" ":"")+""+getitemname(.tier1[.@i])+" ["+getitemslots(.tier1[.@i])+"] x "+.tier1[.@i+1]+""; } mes " "; mes "[^0000ff TIER 2 ^000000]"; for( set .@i, 0; .@i < getarraysize(.tier2); set .@i, .@i + 4 ){ mes ""+((.tier2[.@i+2] >= 1)?"+"+.tier2[.@i+2]+" ":"")+""+getitemname(.tier2[.@i])+" ["+getitemslots(.tier2[.@i])+"] x "+.tier2[.@i+1]+""; } mes " "; mes "[^0000ff TIER 3 ^000000]"; for( set .@i, 0; .@i < getarraysize(.tier3); set .@i, .@i + 4 ){ mes ""+((.tier3[.@i+2] >= 1)?"+"+.tier3[.@i+2]+" ":"")+""+getitemname(.tier3[.@i])+" ["+getitemslots(.tier3[.@i])+"] x "+.tier3[.@i+1]+""; } mes " "; mes "[^0000ffTIER 4 ^000000]"; for( set .@i, 0; .@i < getarraysize(.tier4); set .@i, .@i + 4 ){ if(.tier4[.@i+3] == 1){ mes ""+((.tier4[.@i+2] >= 1)?"+"+.tier4[.@i+2]+" ":"")+""+getitemname(.tier4[.@i])+" x "+.tier4[.@i+1]+""; }else if(.tier4[.@i+3] == 2){ mes ""+((.tier4[.@i+2] >= 1)?"+"+.tier4[.@i+2]+" ":"")+"Costume's "+getitemname(.tier4[.@i])+" x "+.tier4[.@i+1]+""; } } mes " "; mes "[^0000ff TIER 5 ^000000]"; for( set .@i, 0; .@i < getarraysize(.tier5); set .@i, .@i + 4 ){ if(.tier5[.@i+3] == 1){ mes ""+((.tier5[.@i+2] >= 1)?"+"+.tier5[.@i+2]+" ":"")+""+getitemname(.tier5[.@i])+" x "+.tier5[.@i+1]+""; }else if(.tier5[.@i+3] == 2){ mes ""+((.tier5[.@i+2] >= 1)?"+"+.tier5[.@i+2]+" ":"")+"Costume's "+getitemname(.tier5[.@i])+" x "+.tier5[.@i+1]+""; } } close; } case 3: mes .npcname$; mes "Tier Points has been reset."; query_sql "DELETE FROM `global_reg_value` WHERE `str`='#tieramount'"; query_sql "DELETE FROM `global_reg_value` WHERE `str`='#tier1'"; query_sql "DELETE FROM `global_reg_value` WHERE `str`='#tier2'"; query_sql "DELETE FROM `global_reg_value` WHERE `str`='#tier3'"; query_sql "DELETE FROM `global_reg_value` WHERE `str`='#tier4'"; end; } Thanks: mes .npcname$; mes "I respect your decision. Please try my service again"; close; C_enough: mes .npcname$; mes "Sorry but you don't have enough credits."; close; Invalid: mes .npcname$; mes "Invalid Input."; close; OnInit: // == <itemid><amount><refine> setarray .tier1[1],12412,10,0,1; setarray .tier2[1],2371,1,7,1,2523,1,7,1; setarray .tier3[1],1624,1,9,1; setarray .tier4[1],5518,1,0,2; setarray .tier5[1],5518,1,0,1; setarray .tier6[1],5518,1,0,1; setarray .tier7[1],5518,1,0,1; setarray .tier8[1],5518,1,0,1; setarray .tier9[1],5518,1,0,1; setarray .tier10[1],5518,1,0,1; set .npcname$,"[Donate Manager]"; set .creditstocash,0; set .tierpromo,1; set .creditrate,3000; set .zenyrate,35000000; set .maximumzeny,2000000000; end; } Can you please fix it all.
-
OnInit: // == <itemid><amount><refine><mode> setarray .tier1[1],12412,10,0,1; setarray .tier2[1],2371,1,7,1,2523,1,7,1; setarray .tier3[1],1624,1,9,1; setarray .tier4[1],5518,1,0,2; setarray .tier5[1],5518,1,0,1; setarray .tier6[1],5518,1,0,1; setarray .tier7[1],5518,1,0,1; setarray .tier8[1],5518,1,0,1; setarray .tier9[1],5518,1,0,1; setarray .tier10[1],5518,1,0,1; end; switch(select("[T1] 10,000 or above:[T2] 25,000 or above:[T3] 50,000 or above:[T4] 75,000 or above:[T5] 100,000 or above:[T6] 125,000 or above:[T7] 150,000 or above:[T8] 175,000 or above:[T9] 200,000 or above:[T10] 250,000 or above")){ case 1: callsub S_TierReward,1,10000,.tier1,.tier1[.@i],.tier1[.@i+1],.tier1[.@i+2],.tier1[.@i+3]; break; case 2: callsub S_TierReward,2,25000,.tier2,.tier2[.@i],.tier2[.@i+1],.tier2[.@i+2],.tier2[.@i+3]; break; case 3: callsub S_TierReward,3,50000,.tier3,.tier3[.@i],.tier3[.@i+1],.tier3[.@i+2],.tier3[.@i+3]; break; case 4: callsub S_TierReward,4,75000,.tier4,.tier4[.@i],.tier4[.@i+1],.tier4[.@i+2],.tier4[.@i+3]; break; case 5: callsub S_TierReward,5,100000,.tier5,.tier5[.@i],.tier5[.@i+1],.tier5[.@i+2],.tier5[.@i+3]; break; case 6: callsub S_TierReward,6,125000,.tier6,.tier6[.@i],.tier6[.@i+1],.tier6[.@i+2],.tier6[.@i+3]; break; case 7: callsub S_TierReward,7,150000,.tier7,.tier7[.@i],.tier7[.@i+1],.tier7[.@i+2],.tier7[.@i+3]; break; case 8: callsub S_TierReward,8,175000,.tier8,.tier8[.@i],.tier8[.@i+1],.tier8[.@i+2],.tier8[.@i+3]; break; case 9: callsub S_TierReward,9,200000,.tier9,.tier9[.@i],.tier9[.@i+1],.tier9[.@i+2],.tier9[.@i+3]; break; case 10: callsub S_TierReward,10,250000,.tier10,.tier10[.@i],.tier10[.@i+1],.tier10[.@i+2],.tier10[.@i+3]; break; } S_TierReward: if(#tieramount >= getarg(1)){ // Need to fix this because I want it check the first tier before claiming the next tier. if ( #tier == getarg(0)){ mes .npcname$; mes "Please claim first the "+(getarg(0))+" Tier Rewards."; close; } // At this part I can't get any items from above. The for loop is not working please help. mes .npcname$; mes "We sent your tier bonus trough our Reward NPC."; for( set .@i, 1; .@i < getarraysize(getarg(2)); set .@i, .@i + 3 ){ if(getarg(6) == 1){ getitem2 getarg(3),getarg(4),1,getarg(5),0,0,0,0,0; }else if(getarg(6) == 2){ atcommand "@costumeitem "+getarg(3); } } set #tier,#tier + 1; if (#tier >= 10){ set #tieramount, #tieramount - getarg(1); set #tier,0; } end; }else{ mes .npcname$; mes "Converted Cash Points is not enough."; close; } return;
-
Question: Is it possible that I can merge my 2 different server items,accounts and characters? Can please give me a tips how I can do it?
-
-
You can use the latest version but follow the diff on the link that I shared and it will work.
-
I am having a problem with Battle Chant skill. I tested it to monsters and it works but if I use it in party nothing happens or appear on my party member chat box that they receive a buffs. I hope someone can help me.
-
I solved mine using this from hercules https://github.com/HerculesWS/FluxCP/commit/b1b35deedd2219a7e09e7f1a3247de5d3523331a I receive the credits now. Better update the rathena flux now in github.
-
Still the same errors T_T. I hope someone will try the manual patch that I made.
-
Anyone can help me on my harmony patch to make it work on the latest rathena.custom.txt
-
@Cydh Did you use this harmony patch file Server_rAthena_r17484? @Conflicts says that did you add it too? Sorry, for a noob questions. I just really need to remove that error. I made my own patch but if you want to try here it is. custom.txt
-
Cydh I am using latest rAmod compiled with latest rAthena now. I got this error and need to be solved. Did you encounter this one? 1>------ Build started: Project: map-server, Configuration: Debug Win32 ------ 2>------ Build started: Project: login-server, Configuration: Debug Win32 ------ 3>------ Build started: Project: char-server, Configuration: Debug Win32 ------ 2>Linking... 3>Linking... 1>Linking... 2>login.obj : error LNK2001: unresolved external symbol _harm_funcs 2>loginchrif.obj : error LNK2001: unresolved external symbol _harm_funcs 2>loginclif.obj : error LNK2001: unresolved external symbol _harm_funcs 2>socket.obj : error LNK2001: unresolved external symbol _harm_funcs 2>login.obj : error LNK2001: unresolved external symbol _ea_funcs 2>core.obj : error LNK2019: unresolved external symbol _harmony_core_final referenced in function _main 2>core.obj : error LNK2019: unresolved external symbol _harmony_core_init referenced in function _main 2>..\login-server.exe : fatal error LNK1120: 4 unresolved externals 3>core.obj : error LNK2019: unresolved external symbol _harmony_core_final referenced in function _main 3>core.obj : error LNK2019: unresolved external symbol _harmony_core_init referenced in function _main 3>socket.obj : error LNK2001: unresolved external symbol _harm_funcs 3>..\char-server.exe : fatal error LNK1120: 3 unresolved externals 1>core.obj : error LNK2019: unresolved external symbol _harmony_core_final referenced in function _main 1>core.obj : error LNK2019: unresolved external symbol _harmony_core_init referenced in function _main 1>script.obj : error LNK2001: unresolved external symbol _harm_funcs 1>socket.obj : error LNK2001: unresolved external symbol _harm_funcs 1>atcommand.obj : error LNK2001: unresolved external symbol _harm_funcs 1>chrif.obj : error LNK2001: unresolved external symbol _harm_funcs 1>clif.obj : error LNK2019: unresolved external symbol _harm_funcs referenced in function _clif_parse_row_gmcolor 1>clif.obj : error LNK2019: unresolved external symbol _harmony_parse referenced in function _packetdb_readdb 1>map.obj : error LNK2019: unresolved external symbol _harmony_logout referenced in function _map_quit 1>map.obj : error LNK2019: unresolved external symbol _harmony_final referenced in function _do_final 1>map.obj : error LNK2019: unresolved external symbol _harmony_init referenced in function _do_init 1>..\map-server.exe : fatal error LNK1120: 7 unresolved externals 3>Build log was saved at "file://d:\Ragnarok Backup\Chaos Server\rAthena\vcproj-9\char-server\Debug\BuildLog.htm" 3>char-server - 4 error(s), 0 warning(s) 2>Build log was saved at "file://d:\Ragnarok Backup\Chaos Server\rAthena\vcproj-9\login-server\Debug\BuildLog.htm" 1>Build log was saved at "file://d:\Ragnarok Backup\Chaos Server\rAthena\vcproj-9\map-server\Debug\BuildLog.htm" 1>map-server - 12 error(s), 0 warning(s) 2>login-server - 8 error(s), 0 warning(s) ========== Build: 0 succeeded, 3 failed, 0 up-to-date, 0 skipped ==========
-
What dir I can find that Makefile(s). There's a lot of Makefile(s) in diff dir.
-
I am working on new harmony patch file but I am having this errors. Can anyone help me on this errors so I can release the patch in public. 1>------ Build started: Project: map-server, Configuration: Debug Win32 ------ 2>------ Build started: Project: login-server, Configuration: Debug Win32 ------ 3>------ Build started: Project: char-server, Configuration: Debug Win32 ------ 2>Linking... 3>Linking... 1>Linking... 2>login.obj : error LNK2001: unresolved external symbol _harm_funcs 2>loginchrif.obj : error LNK2001: unresolved external symbol _harm_funcs 2>loginclif.obj : error LNK2001: unresolved external symbol _harm_funcs 2>socket.obj : error LNK2001: unresolved external symbol _harm_funcs 2>login.obj : error LNK2001: unresolved external symbol _ea_funcs 2>core.obj : error LNK2019: unresolved external symbol _harmony_core_final referenced in function _main 2>core.obj : error LNK2019: unresolved external symbol _harmony_core_init referenced in function _main 2>..\login-server.exe : fatal error LNK1120: 4 unresolved externals 3>core.obj : error LNK2019: unresolved external symbol _harmony_core_final referenced in function _main 3>core.obj : error LNK2019: unresolved external symbol _harmony_core_init referenced in function _main 3>socket.obj : error LNK2001: unresolved external symbol _harm_funcs 3>..\char-server.exe : fatal error LNK1120: 3 unresolved externals 1>core.obj : error LNK2019: unresolved external symbol _harmony_core_final referenced in function _main 1>core.obj : error LNK2019: unresolved external symbol _harmony_core_init referenced in function _main 1>script.obj : error LNK2001: unresolved external symbol _harm_funcs 1>socket.obj : error LNK2001: unresolved external symbol _harm_funcs 1>atcommand.obj : error LNK2001: unresolved external symbol _harm_funcs 1>chrif.obj : error LNK2001: unresolved external symbol _harm_funcs 1>clif.obj : error LNK2019: unresolved external symbol _harm_funcs referenced in function _clif_parse_row_gmcolor 1>clif.obj : error LNK2019: unresolved external symbol _harmony_parse referenced in function _packetdb_readdb 1>map.obj : error LNK2019: unresolved external symbol _harmony_logout referenced in function _map_quit 1>map.obj : error LNK2019: unresolved external symbol _harmony_final referenced in function _do_final 1>map.obj : error LNK2019: unresolved external symbol _harmony_init referenced in function _do_init 1>..\map-server.exe : fatal error LNK1120: 7 unresolved externals 3>Build log was saved at "file://d:\Ragnarok Backup\Chaos Server\rAthena\vcproj-9\char-server\Debug\BuildLog.htm" 3>char-server - 4 error(s), 0 warning(s) 2>Build log was saved at "file://d:\Ragnarok Backup\Chaos Server\rAthena\vcproj-9\login-server\Debug\BuildLog.htm" 1>Build log was saved at "file://d:\Ragnarok Backup\Chaos Server\rAthena\vcproj-9\map-server\Debug\BuildLog.htm" 1>map-server - 12 error(s), 0 warning(s) 2>login-server - 8 error(s), 0 warning(s) ========== Build: 0 succeeded, 3 failed, 0 up-to-date, 0 skipped ==========
-
I want to change the item drop announcer color to orange. //A Rare Drop Global Announce by Lupus if( mvp_sd && drop_rate <= battle_config.rare_drop_announce ) { char message[128]; sprintf (message, msg_txt(NULL,541), mvp_sd->status.name, md->name, it->jname, (float)drop_rate/100); //MSG: "'%s' won %s's %s (chance: %0.02f%%)" intif_broadcast(message,strlen(message)+1,BC_DEFAULT); }
-
I hope you can also make this compatible to hercules user.