-
Posts
24 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Posts posted by WordsUp
-
-
ahh okay thanks i will try that
-
char_id is a integer i guess it should be @exist
guild_id is a integer i guess it should be @GDExist
I guess your insert command must be like this
query_sql "INSERT INTO `woe_guild_breaks` (`castle_id`, `guild_id`, `id`) VALUES ('15',"+getcharid(2)+",1)";
[/code]
the query_sql works fine it saves into my sql correctly.
the char_id and guild_id i didn't understand sorry.
-
I have created this code for my server and inserted it on my agit_template.txt file but the problem is everytime the emp is broken it didn't return
query_sql "SELECT `char_id` FROM `char` WHERE `char_id` = '"+getcharid(0)+"'",@exist$; if (getarraysize(@exist$) != 0){ query_sql "UPDATE `char` SET `empbreak` = `empbreak` + '1' WHERE `char_id` = '"+getcharid(0)+"'"; end; } query_sql "SELECT `guild_id` FROM `woe_guild_breaks` WHERE `guild_id` = '"+getcharid(2)+"'",@GDExist$; if (getarraysize(@GDExist$) != 0){ query_sql "UPDATE `woe_guild_breaks` SET `id` = `id` + '1' WHERE `guild_id` = '"+getcharid(2)+"'"; } else { query_sql "INSERT INTO `woe_guild_breaks` (`castle_id`, `guild_id`, `id`) VALUES ('15','"+getcharid(2)+"','1')"; end; }
-
i see OnAgitBreak: on agit_template.txt so i need to put that in there?
-
i need to attach a player also hmm i will search about that.
-
getcharid(2) is use to find a guild name right?
-
it still not recording on my sql
-
LOL emistry sort of like that hahaha. anyways thanks alot
-
then if .@ignore is no need then i can make it like this one?
if (query_sql("select `guild_id` from `woe_record` where `guild_id` = '"+getcharid(2)+"'")) {
query_sql("update `woe_record` set `id` = `id`+1 where `guild_id` = '"+getcharid(2)+"'");
}
-
is it possible to have 3 random item to choose from?
-
thanks for helping emistry i will reupdate my files and include you in my script thanks again.
btw i want it to be every player can roll 1
-
thanks for the reply zero but can i ask if this works if i use it? or should i need to change anything for this code to work
-
well im new at this so i don't know much about it yet. but i will try to change it. still in progress on developing it
-
A simple script which allow player to gain item using this npc in exchange of event ticket (you can change if you want)
Npc give a random item from the list.
Players can exchange it using Event ticket
this work one time per day you can change it in what you want. find OnHour24: and change it to what you want. OnHour24 is 12:00AM
you can check the script for more details.
i want to make it 3 random item every roll but i don't know how hahaha.
-
is this code correct?
- script sql -1,{
OnAgitBreak:
if (query_sql("select `guild_id` from `woe_record` where `guild_id` = '"+getcharid(2)+"'",.@ignore)) {
query_sql("update `woe_record` set `id` = `id`+1 where `guild_id` = '"+getcharid(2)+"'",.@ignore);
}
OnAgitEnd :
if (query_sql("select `guild_id` from `woe_record` where `guild_id` = '"+getcharid(2)+"'",.@ignore)) {
query_sql("update `woe_record` set `castle_id` = '"+getcastlename(2)+"' where `guild_id` = '"+getcharid(2)+"'",.@ignore);
}
i don't know what .@ignore use i just copy that code somewhere in my files.
}
-
nice scripts. you should try adding an automated version of some of your events. that would be great. and thanks for the idea of randomized menu.
-
anyone out there?
-
well at my description it says that you need an amount of item to get/exchange that to your chosen item.
for example you get Valkyrie helm and wants it. you need 50PODS before you get it.
and PODS can only get into an event or something.
Plus disable trade of POD to insure that this will not be abuse.
-
i just have this idea last night and still figuring out how can i do this.
here is how it works
Everyday gives an account a 1 roll opportunity
Every Roll gives you a chance to obtain 3 random items (from the list you give)
Each item have an specific amount for you to have it. (ex. you have on your list a "Vhelm, Varmor,Vshoes" cost : 10pod,25pod,15pod)
you can only exchange one item at a time then if you have exchange an item you need to wait another day for you to have a roll again.
Example interface
[Daily Exchanger]
You have 1 Roll for this day
do you want to roll it?
Menu : Yes , No! not yet
if yes :
[Daily Exchanger]
Are you sure?
Menu :Yes, I change my mind
if yes :
[Daily Exchanger]
Rolling........
next;
[Daily Exchanger]
You have this 3 item to choose
which item you like to trade
remember if you click it we will not
give you another chance if you don't like it.
Menu : Item 1(Amount), Item 3(Amount), Item 3(Amount)
[Daily Exchanger]
Here's your item
Thanks see you tomorrow
close;
Thanks in advance to someone who will help me with this script
-
oh i see. so you mean if i have for example "Trunk" (folder name) high rate. i need to make another folder example "Low" (folder name) low rate to make this thing happen? i see... i will try that thanks.
-
http://www.eathena.ws/board/index.php?showtopic=260743 here is the guide i was telling it just says that to edit things with that only. do i need to make another confbattleclient.conf to change the other server? confuse.... hihi
-
i have see some guides about this but my problem is how can i make my other server to be 99/70 cause thus guides i see is just teaching how to make a dual server single client only no other features such like this. cause i have 255/120 high rate right now. planning to make a 99/70.
-
the title says details about my question.
just wondering if how can i make a 2 server (high rate and low rate) in a single client.
high rate is 15000x/15000x/10000x - 255/120
low rate is 15x/15x/5x - 99/70
Item Sprite
in Database Requests
Posted · Edited by WordsUp
Can i ask/request for a compilation of item sprite with item_db also?
much better if there is no script/item effects on the item_db yet thanks in advance