Zirius
Members-
Content Count
261 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Staff Applications
Calendar
Everything posted by Zirius
-
who has AnnieRuru's PVP Ladder with announcement files and SQL queries?
Zirius replied to Zirius's question in Script Requests
Thanks! @AnnieRuru, I don't know mam, but defining flag and color fixed that in mine. -
who has AnnieRuru's PVP Ladder with announcement files and SQL queries?
Zirius replied to Zirius's question in Script Requests
no, I put 16 | .announceannounce "blahblah",16|.announce;16 is bc_blueremove the 16 and you can put color code btw, I have no idea why .announcekill was defaulted to off, it has to turn on set .announcekill, 0; // announce who pawn who's head : 0 - off, 1 - on *Hope, I would be able to describe this. LOL.* Mam, refer to attachment: PVP Script outputs announcement 1 (blue) Another script outputs announcement 2 (should be yellow) But instead of yellow, outputs color blue as shown on 3. LOL. Btw, "|" operator is OR? -
who has AnnieRuru's PVP Ladder with announcement files and SQL queries?
Zirius replied to Zirius's question in Script Requests
for me because of the stat and announcing the kills and deaths makes it more competitive and daring. i'll read the whole script later, i just fixed the current to completely end the announce statement, seems like you need 3 args on announce, that's why the script's announce alters new broadcast's color. thanks again. -
who has AnnieRuru's PVP Ladder with announcement files and SQL queries?
Zirius replied to Zirius's question in Script Requests
but but I reached page 6. Thanks mam! LOL. You can do some throwback and do " a lot of places can be improved ". That would be very exciting to wait for. -
who has AnnieRuru's PVP Ladder with announcement files and SQL queries?
Zirius posted a question in Script Requests
I can only find this: http://neeroscriptcollection.blogspot.com/2013/08/pvp-dota-sound.html but I cannot understand it fully, google translate is blocked here in my network. it doesn't have the SQL queries. So if anyone has the Annie Ruru's PVP ladder, can somebody please share it? its eathena topic is 404. Thanks! -
it constantly getting updated when @reloadbattleconf, it sends (srcmapatcommand.c) chrif->ragsrvinfo(battle_config.base_exp_rate, battle_config.job_exp_rate, battle_config.item_rate_common);then map-server.exe send the value to char-server.exe via (srccharchar.c) if( SQL_ERROR == SQL->Query(sql_handle, "INSERT INTO `%s` SET `index`='%d',`name`='%s',`exp`='%d',`jexp`='%d',`drop`='%d'", ragsrvinfo_db, fd, esc_server_name, RFIFOL(fd,2), RFIFOL(fd,6), RFIFOL(fd,10)) ).. ok ... I don't understand why they need a sql table to send a server rate ... but for sure, whenever map-server change rate, it does send to the `ragsrvinfo` table 1 reason ... that I am just guessing ... is to support multi map-server so with just 1 login server, the player can select which server they like to play, and each map-server has different rates and that index indicate different map-server I'm just guessing though, maybe try ask Ind ok now I know why in case that map-server.exe crash, and char-server.exe still up it can retrieve the last value from SQL, because char-server.exe handles to rates (srcmapcharif.c) /*========================================== * timerFunction * Check the connection to char server, (if it down) *------------------------------------------*/.. . I'm quite sure that inserting a new row in a non-indexed table, will be the 1st rowjust do a select * from ragsrvinfo limit 1; would suffice Is there a way to stop Hercules' @reloadbattleconf on updating the table? That seems to be the only problem anyway. jaBote's diff is enough. works great. Thanks! I had the option to create my own "ragsrvinfo" table that gets update everytime my floating rates NPC changes rates, but.... I think core edits are better, so I choose yours.
-
Yes thanks! Evidently it showed what you described. But, I think there's something wrong? I got sooooo many entries in ragsrvinfo with the same indexes. Is that normal? Memory leak i think? edit. If you want to reproduce "this", @reloadbattleconf creates another entry in SQL everytime you type that command, i am using the latest git.
-
Any other way bro? That would require me to send soooo long strings, ugly to the eyes. LOL.
-
I just want to know how reliable is "ragsrvinfo", I like to put it on my fluxCP. The thing is I implemented floating rates, so I want to know if ragsrvinfo table is constantly getting updated or it remains static for a long time. Or it would be good that it gets updated everytime my floating rates NPC change the rates. Thanks!
-
Hello! I am just wondering how to put line break on my announce? Just like this one: I tried n but seems like client is not parsing it? Thanks!
-
@AnnieRuru Thank you very much that's all I need. It is working great now, I am calling it via external PHP now, i plan on integrating this as a FluxCP module/addon.
-
WOW. I do not actually know what to say. I never knew binaries are that cool, it seems you can store soooo many data in just n-digit number. 1) Thank you very much for making me understand those shift operators, I understand them faster and clearer than those I read on google. for now "&" is the only thing I am having confusion. BTW, about the WOE controller script, if I understood it correctly mam, you are storing the data by multiple of four, one[0] for the day, one[1] for the start time, one[2] for the end time, and one[3] for the castle 2) But on $WOE_CONTROL, there would come a time that the "index" will not be continuous, just like now, my current $WOE_CONTROL is now: Array( [2] => 1 [3] => 32 [5] => 1 [6] => 2 [7] => 4 [8] => 4 [9] => 22 [10] => 23 [11] => 32 [12] => 5 [13] => 22 [14] => 23 [15] => 4) may I know mam what algorithm did you used to create those index? I coded a loop that starts at zero and do the function recursively be 4. The problem is, as shown in my current WOE_CONTROL, index 0 is missing, and some other index numbers, so my code fails. 3) In your example mam you have this: $WOE_CONTROL[4] = 3$WOE_CONTROL[5] = 20$WOE_CONTROL[6] = 22$WOE_CONTROL[7] = 96 index [7] stores the castle name, is there a way I can decode that to show me all the integers used to build that bit? (actually, I remember having the same need for solution). P.S. Is there restriction at quoting Annie Ruru's forum posts? This had been my 4th time having problem quoting her replies.
-
SOLVED. attach the char before the agitcheck loop.
-
Hello! I am trying to show the breaker's name on breakguild I replaced the existing announce with this: announce "The [" + getcastlename(strnpcinfo(2)) + "] castle has been conquered by " + strcharinfo(0) + " of [" + getguildname(.@GID) + "] guild.",bc_all|bc_woe; but, strcharinfo(0) is not detected as implied by console, how can I attach the strcharinfo to my breaker?
-
Disabled skills via map_zone_db.conf are still allowed to be used
Zirius replied to Zirius's question in General Server Support
thanks man. noted. -
LOL. I guess I should start watching binary introduction videos. What I am just trying to do is understand how Euphy stored the castlename's data. I successfully made it to "echo" the data and store them all in single array via external PHP file. but if I create more than 1 session, I do not understand it anymore. LOL. Actually, I just want to convert this into PHP language: mes "[Schedule]"; if (.Size) { freeloop(1); for(set .@i,0; .@i<.Size; set .@i,.@i+4) { mes "> ^FF0000"+.Days$[$WOE_CONTROL[.@i]]+" ("+Add_Zero($WOE_CONTROL[.@i+1])+"-"+Add_Zero($WOE_CONTROL[.@i+2])+")^000000"; for(set .@j,0; .@j<30; set .@j,.@j+1) if ($WOE_CONTROL[.@i+3]&(1<<.@j)) mes " ~ "+getcastlename(.Castles$[.@j])+" ^777777("+.Castles$[.@j]+")^000000"; if (.@i+4 < .Size) mes " "; } freeloop(0); } else mes "No times are configured."; next; this is as far as I got: $Castles=array( "prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05", "payg_cas01","payg_cas02","payg_cas03","payg_cas04","payg_cas05", "gefg_cas01","gefg_cas02","gefg_cas03","gefg_cas04","gefg_cas05", "aldeg_cas01","aldeg_cas02","aldeg_cas03","aldeg_cas04","aldeg_cas05", "arug_cas01","arug_cas02","arug_cas03","arug_cas04","arug_cas05", "schg_cas01","schg_cas02","schg_cas03","schg_cas04","schg_cas05"); $Days = array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"); $result = mysql_query('SELECT * FROM mapreg WHERE varname="$WOE_CONTROL"'); $WOE_CONTROL = array(); while($row = mysql_fetch_array($result)) { $WOE_CONTROL[$row['index']] = $row['value']; } $x=0; while($x<count($WOE_CONTROL)) { echo '<br />'; echo $Days[$WOE_CONTROL[$x]]; echo '<br />'; echo $WOE_CONTROL[$x+1] .":00 - ". $WOE_CONTROL[$x+2] .":00"; $j=0; while($j<30) { if ($WOE_CONTROL[$x+3]&(1<<$j)) { echo " ~ ".$Castles$[$j]; } if ($x+4 < count($WOE_CONTROL)) {echo " "}; $j=j+1; } $x=$x+4; }
-
Suppose if $WOE_CONTROL[0],1,3,4,7; i=0 that means .@i+3 = 0+3 = 3, it will call $WOE_CONTROL[3](which have value 7 as mentioned on above line) So if .@j = 2 (1<<2) = 4, putting all in the statement , it will look like "7&4" Which will be true, & means that the first value contains second value or not(don't know how to explain if you are not familiar with binary) & Defination on Script_Command: The bitwise operator AND (&) is used to test two values against each other, and results in setting bits which are active in both arguments. This can be used for a few things, but in Hercules this operator is usually used to create bit-masks in scripts. Bitwise Opeartions Defination on Wikipedia: http://en.wikipedia.org/wiki/Bitwise_operation Thank you very much for patience bro. if (7&4) will return true because 7 contains 4? did I understand it correctly?
-
Disabled skills via map_zone_db.conf are still allowed to be used
Zirius replied to Zirius's question in General Server Support
I did not know that inheriting "PvP" in zone would also make the map PVP enabled. Upon further reading, zone db has this option: mapflags: ( "pvp", ) will that should also make the zone PVP enabled? -
This is going to make me cry. Have no knowledge with binary. Bro, say, i = 0, and j=0 what is this trying to call? $WOE_CONTROL[.@i+3]&(1<<.@j) also, what does & do in that function? and what actually is it trying to do?
-
I am wondering what does "<<" do in euphy's WOE controller? if ($WOE_CONTROL[.@i+3]&(1<<.@j)) mes " ~ "+getcastlename(.Castles$[.@j])+" ^777777("+.Castles$[.@j]+")^000000"; Thanks!
-
Disabled skills via map_zone_db.conf are still allowed to be used
Zirius replied to Zirius's question in General Server Support
i tried this: pvp_y_7-2 mapflag zone PVP_no_calling it successfully enabled the zone, but removed the pvp mapflag. I tried doing this: pvp_y_7-2 mapflag zone PVP_no_callingpvp_y_7-2 mapflag pvp but it removed the zone. Can't run both? How do you guys solved this? UPDATE. I don't know but playing and ended up something with this solved my problem: pvp_y_7-2 mapflag pvppvp_y_7-2 mapflag zone PVP_no_calling -
Hello! I am trying to disable "recall" skills to my PVP maps since they are level restricted. Some low level GM(guild masters) uses Emergency call to summon level 99 players in my PVP maps designated only for low levels (they are carnaging everyone), so. I added this to my map_zone_db.conf { name: "PVP_no_calling" disabled_skills: { WE_CALLPARTNER: "PLAYER" WE_CALLPARENT: "PLAYER" WE_CALLBABY: "PLAYER" GD_EMERGENCYCALL: "PLAYER" }} Then at my mapflags: pvp_y_7-2 mapflag pvp zone PVP_no_calling But still, the GMs are able to summon them, what am I doing wrong?
-
Are the list of enabled castle maps in db/castle_db.txt are in SQL?
Zirius replied to Zirius's question in Script Support
Yes, thanks. Actually I commented them out on my castle db so Hercules only loads 6 castles. What I wish is that those 6 castles activated in my castle db, conquered or not, to be recorded on SQL, so that I can call them out on my flux cp and list them, and get their info. Is there a way to do this mam? I only need them to appear in my SQL database. -
Are the list of enabled castle maps in db/castle_db.txt are in SQL?
Zirius replied to Zirius's question in Script Support
Thanks for leading me, going to my db and comparing to what my console says, seems like it doesn't record castle properly? I activated 6 castles in my castle_db.txt as console says, by SQL only have 10 entries. -
Are the list of enabled castle maps in db/castle_db.txt are in SQL?
Zirius posted a question in Script Support
in console, Hercules says perfectly how many castle maps are only enabled,so I'm wondering if they are also recorded in database, if so, where are them? If not, can somebody please give me an example or snippet that updates an SQL table of which and only castle maps are enabled. I am in a venture to create a script so that my fluxcp to dynamically get updated.