Jump to content

Capuche

Developer
  • Posts

    2407
  • Joined

  • Last visited

  • Days Won

    52

Everything posted by Capuche

  1. You could use bonus_script instead of OnPCCalc.. http://rathena.org/board/topic/83032-script-commands-additionsupdates/?p=231696
  2. I would like to add getpartymember(1) and isloggedin to prevent to disguise the player logged on another character of his account .@party_id = getcharid(1); .@aid = getcharid(3); if( .@party_id ){ getpartymember .@party_id,1; getpartymember .@party_id,2; for( .@i = 0; .@i < $@partymembercount; .@i++ ) if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) { attachrid( $@partymemberaid[.@i] ); disguise 1002; } attachrid( .@aid ); mes "You party are now disguised."; } close;
  3. Load the script, first kill : kill == 0 if ( kill >= 2 ) not true kill set to 1 Second kill : kill == 1 if ( kill >= 2 ) not true (so there is a mistake) kill set to 2 Third : kill == 2 if ( kill >= 2 ) true, give the reward kill set to 0 kill set to 1 First new kill : kill == 1 if ( kill >= 2 ) not true kill set to 2 Second new kill : kill == 2 if ( kill >= 2 ) true, reward kill set to 0 kill set to 1 - script pvppoints -1,{ OnPCKillEvent: if ( strcharinfo(3) == "morocc" ) { set kill, kill + 1; if ( kill == 2 ) { set arenapoint,arenapoint+10; dispbottom "You have gained 10 Arena Points. Total is "+arenapoint+" Arena Points."; set kill, 0; } } end; OnPCDieEvent: if ( strcharinfo(3) == "morocc" ) { set death, death + 1; if ( death == 5 ) { set arenapoint,arenapoint+10; dispbottom "You have gained 10 Arena Points. Total is "+arenapoint+" Arena Points."; set death, 0; } } end; }
  4. ... click on the waitingroom...
  5. "Transform my "+getitemname(.1stWingID)+" to "+getitemname(.2ndWingID)+"",transform','"Nothing sir!",notnow; transform command is now implemented. Use another word for your label. if (petstat '('PET_CLASS)) { petstat doesn't exist anymore. Use getpetinfo
  6. Well.. copy/past a clean version of mob_db https://github.com/rathena/rathena
  7. I don't know... maybe try another way function script Sample { setarray .@card_id, 4357,4359,4361,4363,4365,4367,4457,4463,4462,4459,4456,4458,4441,4408,4430,4263,4403,4419,4376,4399,4407,4451; set .@size, getarraysize( .@card_id ); for ( set .@i, 0; .@i < .@size; set .@i, .@i+1 ) set .@total, .@total + isequippedcnt( .@card_id[.@i] ); if( .@total > 2 ){ message strcharinfo(0),"You can't equipo more than 2 of these cards, Biolab, Nidhoggur, Naght, Tendrilrion, Mammoth, Rata, Duneyrr,Fallen Bishop, Gloom, Ifrit, Incantation, Kiel, Ktullanux, Tanee, Thanatos, Randgris, Crothen."; nude; } }
  8. Use donpcevent "<NPC object name>::<event label>"; to invoke an event label. Disabled/enabled npc only disable/enable the npc (read the docs in script_commands) so the timer never start.
  9. I don't find any problem with this function. Maybe you forgot to put the function on a restricted card ? You must to put it on all the cards.
  10. Duplicate topic from http://rathena.org/board/topic/89187-open-a-trade-window-with-npc/ Topic closed.
  11. mes "^FF0000Sorry, "+ rid2name( .reg_aid[.@j] ) +" which is same ip with you has joinned this event.^000000"; assuming the script delete the var when the player log out
  12. I don't understand what you request. The current npc doesn't warp the player if someone with the same ip already enter.
  13. The header follows the structure : More infos on Basic_Scripting#NPC. Please read it carefully, it's the basics if you want to implement a npc.
  14. http://rathena.org/board/topic/77822-help-me-on-query-sql/?hl=fakename#entry175031 http://rathena.org/board/topic/85358-title-system/?hl=fakename#entry212282
  15. Make sure you put the call in OnEquip part. If you find none error, send me your item db in PM (if you want) I will test it in my test server.
  16. Capuche

    NPC GM

    With the adjgroup command when you return to the character selection (or log out), your group automatically return to your original group.
  17. db/re/skill_db.txt#L1089 Change the 4th column to 0 (passif) 2326,-2,8,0,-1,0,0,10,2,no,0,0,0,weapon,0,0x0, Same thing about other skill.
  18. db/re/skill_cast_db.txt#L4 Chenge the cooldown of your skill to 0.
  19. Maybe it's not related but it seems the last line in your picture miss some bracket. Have you any error on your mapserv when you use @reloaditemdb ? ...{ callfunc "Sample"; },{}// miss the last bracket.. nope?
  20. I think you loaded endless script multiple times -> @reloadscript.
  21. I don't see anything wrong in the picture..
  22. Add the super baby job in db/pre-re/job_maxhpsp_db.txt
×
×
  • Create New...