Jump to content

AnnieRuru

Members
  • Posts

    2044
  • Joined

  • Last visited

  • Days Won

    51

Everything posted by AnnieRuru

  1. 30501,Holy_Armor, .....,{ bonus ... },{ if ( getequipid(EQI_GARMENT) == 30506 ) unequip EQI_GARMENT; if ( getequipid(EQI_SHOES) == 30507 ) unequip EQI_SHOES; if ( getequipid(EQI_HAND_L) == 30508 ) unequip EQI_HAND_L; },{} 30502,Holy_Garment, ...,{ bonus ... },{ if ( getequipid(EQI_ARMOR) == 30505 ) unequip EQI_ARMOR; if ( getequipid(EQI_SHOES) == 30507 ) unequip EQI_SHOES; if ( getequipid(EQI_HAND_L) == 30508 ) unequip EQI_HAND_L; },{} 30503,Holy_Shoes, .....,{ bonus ... },{ if ( getequipid(EQI_ARMOR) == 30505 ) unequip EQI_ARMOR; if ( getequipid(EQI_GARMENT) == 30506 ) unequip EQI_GARMENT; if ( getequipid(EQI_HAND_L) == 30508 ) unequip EQI_HAND_L; },{} 30504,Holy_Shield, ....,{ bonus ... },{ if ( getequipid(EQI_ARMOR) == 30505 ) unequip EQI_ARMOR; if ( getequipid(EQI_GARMENT) == 30506 ) unequip EQI_GARMENT; if ( getequipid(EQI_SHOES) == 30507 ) unequip EQI_SHOES; },{} 30505,Shadow_Armor, ...,{ bonus ... },{ if ( getequipid(EQI_GARMENT) == 30502 ) unequip EQI_GARMENT; if ( getequipid(EQI_SHOES) == 30503 ) unequip EQI_SHOES; if ( getequipid(EQI_HAND_L) == 30504 ) unequip EQI_HAND_L; },{} 30506,Shadow_Garment, .,{ bonus ... },{ if ( getequipid(EQI_ARMOR) == 30501 ) unequip EQI_ARMOR; if ( getequipid(EQI_SHOES) == 30503 ) unequip EQI_SHOES; if ( getequipid(EQI_HAND_L) == 30504 ) unequip EQI_HAND_L; },{} 30507,Shadow_Shoes, ...,{ bonus ... },{ if ( getequipid(EQI_ARMOR) == 30501 ) unequip EQI_ARMOR; if ( getequipid(EQI_GARMENT) == 30502 ) unequip EQI_GARMENT; if ( getequipid(EQI_HAND_L) == 30504 ) unequip EQI_HAND_L; },{} 30508,Shadow_Shield, ..,{ bonus ... },{ if ( getequipid(EQI_ARMOR) == 30501 ) unequip EQI_ARMOR; if ( getequipid(EQI_GARMENT) == 30502 ) unequip EQI_GARMENT; if ( getequipid(EQI_SHOES) == 30503 ) unequip EQI_SHOES; },{}EDIT:forgot to say I got a PM asked to solve this <.< EDIT2: fixed EQI_HAND_R into EQI_HAND_L
  2. it sounds like an infinite loop problem however I'm not able to detect any freeloop in this script o.o this is a performance killer script ? then, maybe this script access too much query_sql ? I wonder how many players in your server ? and how high is your check_goto_count
  3. ... this script has many bugs <.< now I feel like want to update/fix this myself I don't want members to think that my original one has bug @Emistry you better don't taint my name ! [paste=2kmtv0zl51by] 1. added bindatcmd, type "@mission" will allow you to display the current mission progress 2. fix the infinite loop bug as mentioned above 3. fix maximum level input problem when setup a mission 4. fix mission board allow to do mission without any time limit 5. fix when player login, the data explode wrongly
  4. prontera,155,185,5 script sdkfjhsdkfh2 100,{ input .@test$; query_sql "select '"+ escape_sql( .@test$ )+"' regexp '^[a-z0-9]+$'", .@value; if ( .@value ) dispbottom "pass"; else dispbottom "fail"; end; }------ OR ------ prontera,150,185,5 script sdkfjhsdkfh 100,{ input .@test$; if ( preg_match( "^[a-zA-Z0-9]+$", .@test$ ) ) dispbottom "pass"; else dispbottom "fail"; end; }I still remember last time during eathena times, this preg_match crashed my eathena 12068 test serverI couldn't remember what was the syntax already ... it was 3 years ago I didn't post on the forum because it was just a custom modification release at the time if you guys able to find the bug then file a report then ... because now this is an official script command =/
  5. http://rathena.org/board/topic/78276-cartcountitem-cartdelitem-script-count-or-delete-certain-item-in-cart-inventory/ this one should work .. let me read the source code ... ... very clean o.o
  6. lol I just did this in hercules forum yesterday [paste=hqpyvw984ll]
  7. I see ... so your idea is to use an item in order to do @at so why not just modify the source code for @at ? [paste=1l2sphfr20qk]
  8. merge sort algorithm ! http://www.eathena.ws/board/index.php?s=&showtopic=180080&view=findpost&p=1293102 until today I still haven't crack @KeyWorld's merge sort algorithm <3 no ... actually there is a problem ... when search through an index, the script usually already has 2 or more array being called example like getinventorylist @inventorylist_id[] ... @inventorylist_amount[] if you want to sort @inventorylist_id array, the @inventorylist_amount array needs to sort as well I use sorting algorithm only once in this topic -> http://rathena.org/board/topic/72989-capture-the-flag-woe-script/?p=150735 which I sort the maximum points, along with the guild ID that has the maximum points the script announce the getguildnname( guild ID ), not the maximum points ... not the array the being sorted @Jey why not just use ARR_FIND ? https://github.com/rathena/rathena/blob/master/src/common/db.h#L896 can probably shorten the code by one-third erm ... maybe its not compatible to use source command in a script command ..
  9. why your post so confusing ? your 1st post says "costume item" in 3rd post says "its a potion" which one issit ? try to elaborate
  10. old rathena revision doesn't execute OnInit label with @loadnpc have to @reloadscript or restart your server
  11. nah ... you have to make an event label for it the reason for some monster doesn't have event labels is to save server resources so that some monster doesn't need to execute the script engine ... save memory if you purposely want to check a monster with scripts, then use an event label for it so that you can manipulate them with scripts just add an event label for the baphomet =/ ... you know ... you just ask something like I want to spawn a monster, but I don't want to use monster script command !
  12. sleep2 5000; if ( isequipped(1201) ) atcommand "@kick "+ strcharinfo(0);
  13. an optimized script offer a shorter time when want to add new features to the existing script and also easier to debug it if the script is bug since your request doesn't make an extensive edit and the script isn't bug at all not worth my time
  14. if ( mobcount( "prt_maze03", strnpcinfo(0)+"::OnTrigger" ) ) <do this>;make sure the monster spawned with OnTrigger event label though no idea what this means
  15. no, this script use OnTouch to trigger the npcsince you said "I want a player to walk to an area" npc can't attack, but monsters canyou can also try summon a monster prontera,162,187,5 script Baphomet#hidden -1,3,3,{ end; OnTouch: .@origin = getcharid(3); pcblockmove .@origin, 1; monster "this", -1, -1, "--ja--", 1039, 1, strnpcinfo(0)+"::OnTrigger"; sleep 5000; killmonster strnpcinfo(4), strnpcinfo(0)+"::OnTrigger"; if ( isloggedin( .@origin ) ) pcblockmove .@origin, 0; end; }like I said, its hard to tell the player is dead or player has ran away with this kind of script
  16. 1. this script should've use npc variable or scope variable instead of using player variable ... 2. there's no need for the "makeTimestamp" function, can just use now() ... 3. Give Item menu and Give KCP menu do almost the same thing, can just use a function or callsub and pass some argument ...
  17. move to Hercules already ...

    1. Kido

      Kido

      you like to move it move it?

      -Annie: move it !

      starts to dance (?) yush!

  18. [paste=6967m9big2t] no idea about this
  19. run or die event http://www.eathena.ws/board/index.php?showtopic=238298 yeah that's one of my script update a little bit [paste=4h0fgrgl79d7] that server you played just change to use different map
  20. you are using brathena and you ask this question in rathena =/ http://rathena.org/board/topic/71004-how-to-change-the-max-npc-name-length/
  21. @kido that script is not compatible with rathena rathena has changed the spawning of big/small size mobs into an optional parameter I can reproduce in an instant prontera,155,185,5 script ksdjfhskfjsd 100,{ monster "this", -1, -1, "--ja--", 1002, 1, strnpcinfo(0)+"::OnBigDead", 2; end; OnBigDead: monster "this", -1, -1, "--ja--", 1002, 1, strnpcinfo(0)+"::OnMediumDead", 0; monster "this", -1, -1, "--ja--", 1002, 1, strnpcinfo(0)+"::OnMediumDead", 0; end; OnMediumDead: monster "this", -1, -1, "--ja--", 1002, 1, strnpcinfo(0)+"::OnSmallDead", 1; monster "this", -1, -1, "--ja--", 1002, 1, strnpcinfo(0)+"::OnSmallDead", 1; end; OnSmallDead: if ( .count++ == 4 ) { monster "this", -1, -1, "--ja--", 1002, 1, strnpcinfo(0)+"::OnBigDead", 2; .count = 0; } end; }and that script doesn't answer to the topic ...@Terrorsoul If I understand correctly you mean the lunatic if killed by player cid 150000, that player cannot attack the lunatic again but player cid 150001 can kill it just like emperium, which is restricted the guild ID owns the castle cannot attack its own emperium doing something like this needs source modification though it isn't hard just put a few checks inside battle_check_target is enough to do the trick
  22. you mean you want the dialog like official refiner script and it also has chance to break ... etc etc ? script like this takes time to make ...
  23. omg, my original script has .max_lv-- at the last line dunno why I removed it [paste=2q3r9q4clfme]
  24. http://pastebin.com/u7QKZPk7 already mirror isn't it ?
×
×
  • Create New...