JoyRo
-
Content Count
120 -
Joined
-
Last visited
Posts posted by JoyRo
-
-
-
Thank you AnnieRuru,
The line you gave me adds indeed a old purple box to the ammouth items you get from the redeem npc.
I have the script somewhere from rathena i think.
But i have items that you can get with 50 pieces now it gives you also 50 opb.
This is the script.
// NPC Settings - SET THESE BEFORE LOADING THE SCRIPT! set $servername$,"Joy-Ro"; set $npcname$,"[Item Redeemer]"; // NPC Name to display during chat. Default: "[Item Redeemer]" set $redeemtable$,"cp_redeemlog"; // Default: "cp_redeemlog" set $showcredits,1; // Display Credits to FluxCP Creators? 0 = Disable. 1 = Enable. Default: 1 // End NPC Settings. // Server Settings // DON'T CHANGE THIS UNLESS YOU KNOW WHAT YOU'RE DOING AND HAVE MADE THE APPROPRIATE SOURCE MODS! set $maxinventorysize,100; // Max amount of unique items able to be held in inventory. set $maxquantity,30000; // Max amount of an item able to be held in inventory. // End Server Settings. // Begin NPC mes $npcname$; if (Sex) mes "Well hello there good sir!"; else mes "Well hello there young madam!"; mes "How may I be of assistance to you on this fine day?"; next; switch(select("I wish to redeem items:Who might you be?:I am merely perusing the area")) { case 1: mes $npcname$; deletearray @inventorylist_id; deletearray @inventorylist_amount; set @inventorylist_count,0; getinventorylist; if (@inventorylist_count < $maxinventorysize) { query_sql "SELECT `id`, `nameid`, `quantity` FROM `"+escape_sql($redeemtable$)+"` WHERE `account_id` = '"+escape_sql(getcharid(3))+"' AND `redeemed` = '0' LIMIT 128",.@id,.@nameid,.@quantity; mes "Items Pending Redemption: "+getarraysize(.@id); if (getarraysize(.@id) > 0) { for( set .@loop, 0; .@loop < getarraysize(.@id); set .@loop,.@loop+1) { deletearray @inventorylist_id; deletearray @inventorylist_amount; set @inventorylist_count,0; getinventorylist; if (@inventorylist_count < $maxinventorysize) { for( set .@loop_inner,0; .@loop_inner < @inventorylist_count; set .@loop_inner,.@loop_inner+1) { deletearray @inventorylist_id; deletearray @inventorylist_amount; set @inventorylist_count,0; getinventorylist; if (@inventorylist_id[.@loop_inner] == .@nameid[.@loop]) { if (@inventorylist_amount[.@loop_inner]+.@quantity[.@loop] > $maxquantity) { mes "I'm terribly sorry, but you cannot hold more than "+$maxquantity+" of "+getitemname(.@nameid[.@loop])+" at a time!"; mes "Please come back when you carry less of this item."; close; } else if (checkweight(.@nameid[.@loop],.@quantity[.@loop]) == 0) { mes "I'm terribly sorry, but you are carrying too much to accept your rewards."; mes "Please come again with less weight."; close; } } } query_sql "UPDATE `"+escape_sql($redeemtable$)+"` SET `char_id` = '"+escape_sql(getcharid(0))+"', `redeemed` = '1', `redemption_date` = NOW() WHERE `id` = '"+escape_sql(.@id[.@loop])+"'"; getitem .@nameid[.@loop],.@quantity[.@loop]; getitem Old_Violet_Box, .@quantity[.@loop]; mes .@quantity[.@loop]+"x "+getitemname(.@nameid[.@loop]); } else { mes "I'm terribly sorry, but you cannot hold more than "+$maxinventorysize+" items in your inventory."; mes "Please come again with less items."; close; } } if (Sex) mes "Thank you for your patronage fine sir."; else mes "Thank you for your patronage ma'am."; mes "Please enjoy your stay on our server, "+$servername$+"."; close; } else { mes "My records indicate that there are no rewards awaiting to be redeemed."; mes "My deepest apologies for the misunderstanding."; close; } } else { mes "I'm terribly sorry, but you cannot hold more than "+$maxinventorysize+" items in your inventory."; mes "Please come again with less items."; close; } close; case 2: mes $npcname$; mes "I am here to allow for the redemption of rewards for donations to our server, "+$servername$; mes "Donations may be made to the server via the control panel."; close; case 3: mes $npcname$; mes "Very well then."; mes "Good day to you."; close; }}
-
Hello,
I had a question about a npc i use i wanna add a extra feature.
When people buy a donation item that cost like 6 credits i want them to get also an aditional 6 old purple boxes.
Any idea what line i should add? I think it shoul dbe here somewhere.
}query_sql "UPDATE `"+escape_sql($redeemtable$)+"` SET `char_id` = '"+escape_sql(getcharid(0))+"', `redeemed` = '1', `redemption_date` = NOW() WHERE `id` = '"+escape_sql(.@id[.@loop])+"'";getitem .@nameid[.@loop],.@quantity[.@loop];mes .@quantity[.@loop]+"x "+getitemname(.@nameid[.@loop]);} else { -
Hello,
I have a question about the treasure boxes in the woe castles.
the boxes drop difrent items that they should be.
and the god materials arent 1 of them.
How could i enable the old boxes like iro.
http://db.irowiki.org/db/treasure-drops/valkyrie/
Hope some 1 can help me with it or atleast explain to me why its difrent...
Atm the drops areGod_Material_Box: 10 ( Not working? )Union_Of_Tribe: 500Old_Blue_Box: 10000Treasure_Box: 5000High_Weapon_Box: 40Accessory_Box: 40Old_Card_Album: 500Sg_Weapon_Supply_Box: 10 -
HAHAHAHA !!
I just reply a similar topic in rathena forum
https://rathena.org/board/topic/104040-
this topic is much simpler compare to that one
there is no need for the relog
@adjgroup trick can be use here
http://upaste.me/5e9422189014c2ddf
EDIT: .. erm ... someone name @@SEC here ...
have to use upaste ...
Thanx this is looking good than i have 1 more request.
When i became VIP with the account i also had the command
query_sql "insert into `account_data` (`account_id`, `base_exp`, `base_drop`) values ("+getcharid(3)+", 200, 200) ON DUPLICATE KEY UPDATE base_exp=VALUES(base_exp), base_drop=VALUES(base_drop);";
That wil give the vip player a 200% bonus on the exp and drops.
Is it posible to get the bonus exp also for 1 month when i activate vip player.
-
Hello,
At my server i use a platinum coin as exchange for gm lvl 2 ( called ViP Player )
When they talk to a npc they deliver the coin and after relog they get gm status lvl 2.
Can i change that it only gives the status for 1 month? -
Hello Folks,
I have a problem with the donation on FLuxCP.
I Setup everything its seems to work people donate i get emails i accept the payments but..
People dont recieve the Credits.
Any solution?
-
You know if there is any script code that it wil auto update.
Like setting a lvl 2 gm isquery_sql "update `login` set `group_id` = 2 where `account_id` = "+ getcharid(3);
close;
I would like it for setting that account 200% exp it is indeed account_dataFixed it myself,
query_sql "insert into `account_data` (`account_id`, `base_exp`, `base_drop`) values ("+getcharid(3)+", x, x) ON DUPLICATE KEY UPDATE base_exp=VALUES(base_exp), base_drop=VALUES(base_drop);";
Change X to the amount you like .
-
Hello,
On my server i am using a coin that gives players VIP Status ( Super Player )
IS it also posible that people that have that Rank get double exp?
Or is there a script that gives vip status with double exp. -
Than i just say Awsome thanx!
-
Hey All,
I noticed a problem in my server.
Even when there is no war of emperium active the emperiums are still spawned.
Any idea how this happens?
I dont use any extra Woe Controller. -
Hello Zhao Chow,
Thank you for your reply.
I wil go try it out thanks keep you updated if it worked or not.
Kind regards
@@JoyRo Test thisprontera,100,100,3 script Random Item 123,{ mes "[ Random Item Giver ]"; mes "Get Random Item Here"; next; mes "[ Random Item Giver ]"; mes "Here you go"; setarray .@item_id,505,506,507,508,509,510; set .@item_count,1; getitem .@item_id[rand(getarraysize(.@item_id))], .@item_count,1; close;}
EDIT : you can just put that script when giving the reward or item
Thank you its working! -
Hello,
Is there any one that can help me create a script.
I would like to have a script that gives me a random reward if i complete a quest or trade for points.
-
Hallo,
I noticed a isseu on my server with Elemental damage is there any 1 that can help me with that.
The problem is when i do 20.000 damage with natural property wapon on a monster that has 200% extra on fire.
So normaly you should think the damage with fire wapon or arrows should be 40.000 but it is only around 32.000
Any one know what the problem could be?
Kind Regards Henry
Chat Issue
in General Server Support
Posted
Hello People,
When i send a private chat to someone i get the line
( To "name" () "Message" Why is there is () at the and of To Wisper
( From "name" ) "Message"
If any 1 has any idea how i could change that please shout out.