-
Posts
2044 -
Joined
-
Last visited
-
Days Won
51
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Everything posted by AnnieRuru
-
the reputation on the post shows correctly now, for me at least dunno about other members @kido reputation points on the profile seems to work for me though
-
prontera,160,180,5 script askdfjasdhkjasd 100,{ if ( !getequipisequiped(EQI_HAND_R) ) { mes "you don't have a weapon equip on right hand"; close; } // original method = 1 // for ( .@i = 0; .@i < .size; .@i++ ) // if ( getequipid(EQI_HAND_R) == .id[.@i] ) break; // what I always use - 2 while ( getequipid(EQI_HAND_R) != .id[.@i] && .@i < .size ) .@i++; if ( .@i < .size ) { mes "you are wearing a weapon in the array"; close; } if ( .@i == .size ) { mes "nope, you can't proceed"; close; } close; OnInit: setarray .id, 1201, 1202, 1203, 1204, 1205, 1206; .size = getarraysize( .id ); end; }and another method no.3, use more memory but hasten processing speedthis method I use in writing advanced utility scripts prontera,162,180,5 script kjsdfhksdjf 100,{ if ( !getequipisequiped(EQI_HAND_R) ) { mes "you don't have a weapon equip on right hand"; close; } if ( getd(".id"+ getequipid(EQI_HAND_R) ) ) mes "you are wearing a weapon in the array"; else mes "nope, you can't proceed"; close; OnInit: setd ".id"+ 1201, 1; setd ".id"+ 1202, 1; setd ".id"+ 1203, 1; setd ".id"+ 1204, 1; setd ".id"+ 1205, 1; setd ".id"+ 1206, 1; end; }
-
show your pvp ladder script 1st
-
https://github.com/rathena/rathena/blob/master/db/re/item_noequip.txt
-
what does guild house do ? using which map ? and if I remember correctly, emistry did a guild house script before ... let me dig it out I think I saw it inside emistry signature before if I'm not mistaken .. ( emistry you better don't change your sig ) ok I think I saw it while it was still in old eathena forum ... nvm OH YES found it http://www.eathena.ws/board/index.php?s=&showtopic=270610&view=findpost&p=1482790 I reupload it here again [paste=iebzflhnv6]
-
if ( sd->bl.m == m ) { clif_displaymessage( fd, "You can't warp on the same map" ); return -1; } add this just above pc_setpos inside (mapmove)
-
Wrong stat points given on "set Baselevel"
AnnieRuru replied to johnbond's question in Scripting Support
say thanks to @Cydh, no mehe is the one who fixed it =/ I couldn't find any equation made for renewal stat point formula... everywhere .. even google search and its pain in the ass to create one ... it seems like at 105->115, the difference goes like 1,2,3,4 ... 115->125 goes like 12,14,16,18, .... I'm not a math genius ... maybe @KeyWorld can make one ... hahaha its much easier if you do a reset from an npc script - script kjhfksjfh -1,{ OnPCLoginEvent: if ( baselevel < 105 || renewal_stat_reset ) end; dispbottom "Your status point has been reset"; resetstatus; renewal_stat_reset = 1; end; } -
just for fun ... how about you try to apply this latest fix http://rathena.org/board/tracker/issue-8459-addtimer-command-should-report-an-error-if-it-hits-max-eventtimer/ and give me some laugh screenshot how your map-server.exe looks like ? I got a feeling you must have some custom src mod to pile up max_eventtimer already
-
botkiller script usually has npc dialog *mes + *next command will automatically make player couldn't use skill/chat/attack/pot/ but still allow to use atcommand, which like you said can counter with sc_berserk sc_berserk has time limit if player runs out of SP, the player can chat again, which bypass the system so its no use to use sc_berserk, since the time limit is depended on player's MAXSP also, sc_berserk still allow player do normal attack setoption 0x40 only for perfect invisibility to prevent other monster/player hitting you tested with setoption Option_Summer, 1; it also can be bypass with player having a cool tower(2776) by equip and unequip it actually you know .. when you said botkiller, you just suggest me an idea to create infinite next; button like this prontera,150,189,5 script test noattack 123,{ @infinite_message = 1; attachnpctimer; initnpctimer; while ( @infinite_message ) { mes "you are currently in infinite message loop"; mes "pressing next button will not help you :P"; next; } end; OnTimer5000: @infinite_message = 0; getmapxy .@map$, .@x, .@y, 0; warp .@map$, .@x, .@y; end; }hahaha !!and please no atcommand I know about atcommand "@option 1" http://rathena.org/board/tracker/issue-6841-function-sc-start2-has-a-problem/?gopid=15332#entry15332 but this will create unnecessary log data in `atcommandlog`
-
1201,Knife,Knife,4,50,,400,17,,1,3,0xFE9F7EEF,7,2,2,1,1,1,1,{ Oven_Effect::OnTock },{},{}where is the doevent command ?shouldn't your test server *beep* telling you there's error on the line ? [Error]: script error on item_db_re line 538 parse_simpleexpr: unexpected character * 538 : Oven_Effectwell I'm using sql db,but there must still be an error on your map-server.exe should be something like this 1201,Knife,Knife,5,50,,400,17,,1,3,0xFE9F7EEF,63,2,2,1,1,1,1,{},{ doevent "Oven_Effect::OnTock"; },{}
-
1. what is your emulator version ? maybe not using rathena ? 2. how about show the whole line of that item ? I use SQL database so here's my line 1201,"Knife","Knife",5,50,,400,"17",,1,3,4271865583,63,2,2,1,"1",1,1,"","doevent ""Oven_Effect::OnTock"";",""3. how about change doevent into addtimer ?I have encounter several issue where some server having problems with doevent script command, its getting buggy // OnEquip{ addtimer 1,"Oven_Effect::OnTock"; } OnUnEquip{}4. how about using callfunc ? // OnEquip{ callfunc "Oven_Effect"; } OnUnEquip{} function script Oven_Effect { while ( isequipped(1201) ) { // change 1201 to your custom item ID from where it came from dispbottom @a++ +""; if ( getstatus( SC_FREEZE ) ) { message strcharinfo(0), "Frozen status detected"; sleep2 4000; // 4 seconds delay if ( getstatus( SC_FREEZE ) ) { unittalk getcharid(3), "Break the ICE !!"; sc_end SC_FREEZE; } } sleep2 250; // delay in miliseconds } end; }OR ...5. maybe your test server just sucks
-
feels like want to bump this topic @emistry I believe setoption can't make the player frozen or stone because that is under seconds option effect if you have found a way to use setoption to disable players from using a skill, please tell I have tried setoption 0x2 thief class players can counter this by casting hide skill twice to bypass this effect same goes to chasewalk ... etc
-
WTF !!! all my event scripts which blocks players from moving has been doing pcblockmove and setoption 0x40 and I have been doing this since 3 years ago ! why until today only I hear about this bug can you try change setoption 0x40 into setoption Option_Invisible | Option_Xmas and see what's the result ? 0x40000 ( summer suit ) + 0x40 ( gm hide ) = 0x40040 use option_xmas or option_summer ? if this doesn't work, probably need something like pcblockattack already
-
Read The F***ing Manual prontera,150,189,5 script AnnieRuru 123,3,4,{ end; OnTouch: npctalk "Hi "+( ( sex )? "Handsome" : "Pretty" )+" one ~ How may I help you ?"; end; }this will trigger the npc with the range like thisxxxxxxx xxxxxxx xxxxxxx xxxxxxx xxxNxxx xxxxxxx xxxxxxx xxxxxxx xxxxxxx https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L224
-
comment this line
-
yes it is if you want the damage cap only on monster only, can do if ( src->type == BL_PC && bl->type == BL_MOB )
-
-
lol if ( isequippedcnt(4403) >= 2 && isequippedcnt(2703) < 2 ) bonus bDelayRate, -30 / isequippedcnt(4403); else bonus bDelayRate, -30;same to that topic =/... haha our discussion turn around into a circle =/
-
I think this has nothing to do with that oneand addtimer command mustn't be remove with @reloadscript, it was purposely coded this way - script Oven_Effect -1,{ OnTock: while ( isequipped(1201) ) { // change 1201 to your custom item ID from where it came from if ( getstatus( SC_FREEZE ) ) { message strcharinfo(0), "Frozen status detected"; sleep2 4000; // 4 seconds delay if ( getstatus( SC_FREEZE ) ) { unittalk getcharid(3), "Break the ICE !!"; sc_end SC_FREEZE; } } sleep2 250; // delay in miliseconds } end; } prontera,155,185,5 script dkfhsdkfj 100,{ sc_start sc_freeze, 10000000, 1; }how come its bug ?why I got it working just fine I even test with REAL storm gust
-
@dhaisuke as far as I know, battleground script are suppose to on all the time around the clock it only off when the match is in progress so no such things as "make this automated" unless you want to use disablenpc/enablenpc around with it @erby maybe I should've make the configuration in an array instead =/ [paste=5zppjqzhmatk]
-
haha, I got some stress off after complete whole endless tower ( honestly I have to say its my 1st time complete official endless tower quest ) anyways - script Oven_Effect -1,{ OnTock: while ( isequipped(1201) ) { // change 1201 to your custom item ID from where it came from dispbottom @a++ +""; if ( getstatus( SC_FREEZE ) ) { sleep2 100; // seems like you have a slight delay in timer if the player getting freezed dispbottom "Break the ICE !!"; sc_end SC_FREEZE; } sleep2 100; // delay in miliseconds } end; } prontera,156,187,5 script kjdhfksdjf 100,{ sc_start sc_freeze, 10000, 1; end; }I tested it actually works apparently your script has sleep2 and addtimer command together so I added it up into 6 seconds you can remove the sleep2 2000; if you don't want a delay to break the ice
-
@nanaki can you confirm this bug still exist after instance system rewrite ? this topic is very old from 2012 I couldn't seem to be able to replicate this bug anymore EDIT: I've tried triple client, all characters stands on the portal before the portal enablenpc itself it still warps all my characters also tested with some players has cloaking ... also no bug ... ... testing on rathena endless tower script atm ... same result ... I passed lvl73 ... beaten whole script, no bug found
-
shouldn't you need to recompile your server too ? because there was enum value swap too https://github.com/rathena/rathena/commit/74740b4 EDIT: yeah I didn't see any info about having to update src file in the 1st post =/
-
should belongs to source section though [paste=1flvas6pjtxx]
-
weird, when I read that script, I didn't expect it to cause this problem and I just test it right now in my test server, it also doesn't display this error (I compile with report addtimer error) no idea how you can get those error but whatever, at least we have pinpointed this problem this is the script which doesn't use addtimer command and uses sleep2 instead // OnEquip{ doevent("Oven_Effect::OnTock"); } OnUnEquip{} - script Oven_Effect -1,{ OnTock: while ( isequipped(1201) ) { // change 1201 to your custom item ID from where it came from // dispbottom @a++ +""; if ( getstatus( SC_FREEZE ) ) { sleep2 2000; // seems like you have a slight delay in timer if the player getting freezed sc_end SC_FREEZE; } sleep2 4000; // delay in miliseconds } end; }I reported this in bug tracker to ensure this problem never happens againhttp://rathena.org/board/tracker/issue-8459-addtimer-command-should-report-an-error-if-it-hits-max-eventtimer/