-
Posts
205 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Everything posted by Ryokem
-
//[...] end; OnMinute00: announce "Poring Catcher : It's time to play some Poring Catcher!",0; //[...]
-
Replace: OnClock0000: OnClock0200: OnClock0400: OnClock0600: OnClock0800: OnClock1000: OnClock1200: OnClock1400: OnClock1600: OnClock1800: OnClock2200: with: OnMinute00: RE: damn, facebook slowed me down too long
-
Oh.. I'm actually studying SQL and databases at university at the moment, only half course done till now and honestly I can say that's not really something so advanced, what was really hard to do was just to find out every attribute of the table he used, but that's just boringly long more than difficult... He sure has some DB knowledges, but that's not really hard.
-
I'm not really solving the problem, but I was wondering about some parts of your script... Uh? Why are you starting the timer with initnpctimer; and then starting back again with startnpctimer; ? You can't really start an already started timer lol. just use one. Better initnpctimer; as it automatically sets the npc timer to 0. I'm wondering about the 111 sprite. 111 is an invisible sprite that allows an npc to still be clickable (it appears the dialogue icon when scrolling the cursor over the npc location). But how can a clickable npc have no maps and no coords? This actually can work, but it can fall into weird server debugings. - script cutrue_refill_auto -1,{
-
Actually, I believe he is just setting the wrong coordinates. In his script, he is randomizing a value from 8 to 31 as X coordinate, while his position (centre of the map) has X = 60. His position is 10 cells far from the wall, so the item will be not generated in the area where he is. OnInit: while(1) { if( getmapusers("new_zone04") ) makeitem 969,1,"new_zone04",rand(50,70),rand(170,190); sleep 100; } end; I believe this code actually works fine, if the item 969 does actually exist.
-
Item Reward every 24 hrs and need to stay for 5 hours
Ryokem replied to jigsgfx's question in Script Requests
Yeah. But then, set @Hour,@Hour + 1; becomes meaningless. -
announce strcharinfo(0) + " just entered PvP yoyo mode", 0; By the way, I have no idea what pvp yoyo mode is, so can ya be more specific please? Also, providing us with your script may help even more. EDIT: @darristan please be slower next time xD!
-
Item Reward every 24 hrs and need to stay for 5 hours
Ryokem replied to jigsgfx's question in Script Requests
Missing the <facing> value. Also, try to use tabulations and not returns between each part of the header. prontera,151,182,4<TAB>script<TAB>Sample<TAB>757,{ -
Replace line 123 with what follows: for ( set .@i, 0; .@i < $@members; set .@i, .@i + 1 ) { Also, you are using eAthena aren't you? Please specify it, 'cause some rA codes doesn't work on eA.
-
Annie just said everything you need to correct your code. Anyway, just to add the general case to help you on this kind of structure.. ( <condition> ) ? <note 1> : <note 2> Means: if <condition> is met, solve <note 1>; solve <note 2> otherwise. <note 1> and <note 2> actually must be of the same type (2 string or 2 integers about rA)
-
According to what the others said, I believe this is still the best option given blame yourself.....you didnt mention about it .... - script Sample -1,{ OnPCLoginEvent: if( Class >= 4054 && !DONE && BaseLevel >= 150 && JobLevel >= 50){ resetskill; set DONE,1; set SkillPoint,168; message strcharinfo(0),"Skill Resetted."; } end; }
-
Kindly refer to this thread please: http://rathena.org/board/topic/73301-help-me-with-the-script/
-
Something like... -<tab>script<tab>monsterKiller<tab>-1,{ OnPCDieEvent: if( strcharinfo(3) != "06guild_01" ) end; killmonsterall "06guild_01"; end; }
-
It's a nice solution, but that prevents the player to gain exp from killing monsters only, not from all other script sources (like quests, for example). Even if, I must agree there is no way to prevent a script command to work, unless the proper source modifications. You should be more detailed about "which" exp you want players not to gain: only EXP from killing monsters, only EXP from other script souurces, or both.
-
You did not copy-paste the file correctly tho. I really see no errors there, and there are tabulations. Try to copy-paste again
-
Ye.. I forgot to use tabulations in mapflags as well... (I didn't even noticed there were mapflags lol) http://pastebin.com/MmELB5pk
-
EDIT: See Post #9 http://rathena.org/board/topic/73245-nhelp-script-error/#entry151160
-
EDIT: See Post #9 http://rathena.org/b...or/#entry151160
-
prontera,157,178,5<tab>script<tab>Sample<tab>757,{ if ( getgmlevel() < 80 ) end; mes "Input Player Name"; if ( input( .@input$, 4, 23 ) ) { mes "invalid name length"; close; } if ( .@nb == query_sql( "select name, online from `char` where account_id = ( select account_id from `char` where name = '"+ escape_sql(.@input$) +"' ) order by char_num", .@name$, .@online ) ) for ( set .@i, 0; .@i < .@nb; set .@i, .@i + 1 ) mes " > "+ .@name$[.@i] +" "+( ( .@online[.@i] )? "^00FF00[Online]" : "^FF0000[Offline]" )+"^000000"; else mes "No character found"; close; } All credits @ AnnieRuru 3 small changes done: input( .@input$, 4, 23 ) //The variable used in the sql command has no capital letter. .@nb == query_sql() //dual '=' needed for comparisons for ( set .@i, 0; .@i < .@nb; set .@i, .@i + 1 ) //Optimized for 3CeaM users (like him)
-
Nah, I just said rAthena is not C++ or other languages, that's all ^^ Just to let him know that not everything about the other programming languages is correct also on rAthena and viceversa. The errors you are showing up are basically all the same. You can't change the value of a variable by a direct set if using 3CeaM unless you did implement it by yourself. So: <variable> = <value>; //This is not allowed in 3CeaM set <variable>, <value>; //This has the same meaning of the command above, but works in 3CeaM Same with your error: set .@size, getarraysize([...]); Also, line 61 (for cicle) presents the same error for( set .@i, 0; .@ i < .@size; set .@i, .@i + 1 )
-
Was speaking about 3CeaM as he said he was using it. Does it? .@i is supposed to be 0 and .@i++ is supposed to do the following: 1. execute the command in which it is called. 2. Increase the variable .@i by 1. So where's the "0"? The code you wrote would be recognized as (++.@i) from all imperial programming languages, unless the variable starts from 1. Actually, the output should be "0 1 2 3 4". Sure it can be xD I always have both opened xD
-
EDIT: ups! XD Commands like var++; will not work. You have to use the full version: var = var + 1; Plus, as people says, 3CeAM doesn't support direct variable settings, so set command is actually needed. set .@a, <value>; for( set .@i, 0; .@i < 10; set .@i, .@i + 1 ) //Just sample values. set .@a, .@a + 1;
-
How to set warper a random warp for specific map
Ryokem replied to mightyryan's question in Scripting Support
If both <to x> and <to y> are set to 0, the system will generate a random walkable cell in the <to map> map and will warp you there. warp pay_dun04, 0, 0; Same with pay_dun03 or all the other maps you need. -
Did you reload scripts after commenting the agit_controller? Also, are you sure that your server has no other scripts in which the agitstart is called?
-
You just did a typo, see the red bolded 0 above. Also, don't forget the proper tabulations. guild_vs1,0,0,0,0<tab>monster<tab>Golden Dokebi<tab>1110,1000,0,0,"Gold Room Manager::OnMobKilled" for more information, you can always check the wiki page. http://rathena.org/wiki/Permanent_Monster_Spawn