Jump to content

rickzera

Members
  • Posts

    51
  • Joined

  • Last visited

Everything posted by rickzera

  1. I would like to modify the command so that it does not display the location of VIP (level: 1) players or maybe create an @nowhere where you can disable seeing the player's current location with @where.
  2. solved closed this topic please!
  3. I would like to create a bind where he would check the level vip of the account and open the bind. I'm not getting can anyone help me do? - script sampletest -1,{ if(getgroupid() < 1) goto nopremium; OnInit: bindatcmd "sample",strnpcinfo(3)+"::OnAtcommand"; close; OnAtcommand: callfunc "sample1"; end; nopremium: callfunc "sample2"; end; }
  4. I had no errors to compile. Now when I use the command it works. Through NPC that charges an item to transform items not appearing in script list. //============================================================ // ------------------------------------------------------------------------------- // Script Name : Headgear to Costume converter >> Costume to Headgear converter // ------------------------------------------------------------------------------- // Description : // - Allows a user to convert the equipped headgear (on Top, Mid or Low) into a // costume item. It will remove any card and refine of the Item. // - Allows a user to restore the equipped costume headgear (on Top, Mid or Low) // into its original form. It will not return any card or refine of the item. // ------------------------------------------------------------------------------- - script Costume Clown -1,{ mes "[Clown]"; mes "Here you can convert your headgears into a Costume Headgear or restore to its Original State."; mes "And it only cost 1 ^0000FFCostume Ticket^000000 when you're converting or restoring your headgear."; switch(select("I want to convert.:I want to restore.:No thanks.")) { case 1: next; if(countitem(607) <1) { mes "[Clown]"; mes "I need at least 1 ^0000FFCostume Ticket^000000 to convert your headgear into a ^0000FFCostume^000000"; close; } mes "[Clown]"; mes "Please, select what to convert."; mes "Remember, cards and refine will be removed."; next; setarray .@Position$[1],"Top","Mid","Low"; setarray .@Position[1], 1, 9, 10; set .@Menu$,""; for( set .@i, 1; .@i < 5; set .@i, .@i + 1 ) { if( getequipisequiped(.@Position[.@i]) ) set .@Menu$, .@Menu$ + .@Position$[.@i] + "-" + "[" + getequipname(.@Position[.@i]) + "]"; set .@Menu$, .@Menu$ + ":"; } set .@Part, .@Position[ select(.@Menu$) ]; if( !getequipisequiped(.@Part) ) { mes "[Clown]"; mes "Your not wearing anything there..."; close; } mes "[Clown]"; mes "You want to Costume your " + getitemname(getequipid(.@Part)) + "?"; next; if( select("Yes, proceed:No, I am sorry.") == 2 ) { mes "[Clown]"; mes "Need some time to think about it, huh?"; mes "Alright, I can understand."; close; } costume .@Part; // Convert the Headgear delitem 607,1; mes "[Clown]"; mes "Done, enjoy your costume headgear."; close; case 2: next; if(countitem(607) <1) { mes "[Clown]"; mes "I need at least 1 ^0000FFCostume Ticket^000000 to restoring your headgear into its Original State."; close; } mes "[Clown]"; mes "Please, select what to restore."; mes "Remember, I will only restore it back without refine and cards."; next; setarray .@Position$[1],"Top","Mid","Low"; setarray .@Position[1], 13, 12, 11; set .@Menu$,""; for( set .@i, 1; .@i < 5; set .@i, .@i + 1 ) { if( getequipisequiped(.@Position[.@i]) ) set .@Menu$, .@Menu$ + .@Position$[.@i] + "-" + "[" + getequipname(.@Position[.@i]) + "]"; set .@Menu$, .@Menu$ + ":"; } set .@Part, .@Position[ select(.@Menu$) ]; if( !getequipisequiped(.@Part) ) { mes "[Clown]"; mes "Your not wearing anything there..."; close; } mes "[Clown]"; mes "You want to restore your " + getitemname(getequipid(.@Part)) + "?"; next; if( select("Yes, proceed:No, I am sorry.") == 2 ) { mes "[Clown]"; mes "Need some time to think about it, huh?"; mes "Alright, I can understand."; close; } a = getequipid(.@Part); delitem a,1; getitem a,1; delitem 607,1; mes "[Clown]"; mes "Done, enjoy your restored headgear."; close; case 3: next; mes "[Clown]"; mes "Very well. Return at once if you seek my services."; close; } } // -------------------------------------------------------------------------- // Use duplicates to put your npc on different cities // -------------------------------------------------------------------------- prontera,168,162,2 duplicate(Costume Clown) Costume Clown#1 715
  5. That line worked and now another error appeared when compiling can help? Thank you very much in advance
  6. Can anyone help me with this problem at compile time? https://github.com/secretdataz/rathena/commit/12acccd30b970e73ee7bce60b97ed434d4577a1f
  7. Skill Issues: I try Asura Strike on Professor with Orc Lord Armor then my damage back to my character even the Professor is inside Safety Wall.
  8. paladin when using skills CR_AUTOGUARD/CR_REFLECTSHIELD when unequipping the shield they remain how to solve it? dispel not removing Soul Linker Spirit how to solve it?
  9. I use pre-r. I tried to do this topic alike. My server is 255/70. No matter where I change the maximum received HP percentage, it seems fixed.
  10. The sword appears for all. And I wish it worked only on the trap skill.
  11. Keep the buff. I tried to remove those changes and still continue to lose the skills. https://github.com/rathena/rathena/commit/d612788ed79f37851d6a3ce83561e922abf550fe
  12. status.cpp: 7456 my review: struct status_data *status_get_status_data(struct block_list *bl) { nullpo_retr(&dummy_status, bl); switch (bl->type) { case BL_PC: return &((TBL_PC*)bl)->battle_status; case BL_MOB: return &((TBL_MOB*)bl)->status; case BL_PET: return &((TBL_PET*)bl)->status; case BL_HOM: return &((TBL_HOM*)bl)->battle_status; case BL_MER: return &((TBL_MER*)bl)->battle_status; case BL_ELEM: return &((TBL_ELEM*)bl)->battle_status; case BL_NPC: return ((mobdb_checkid(((TBL_NPC*)bl)->class_) == 0) ? &((TBL_NPC*)bl)->status : &dummy_status); default: return &dummy_status; } } github: int status_get_class(struct block_list *bl) { nullpo_ret(bl); switch( bl->type ) { case BL_PC: return ((TBL_PC*)bl)->status.class_; case BL_MOB: return ((TBL_MOB*)bl)->vd->class_; // Class used on all code should be the view class of the mob. case BL_PET: return ((TBL_PET*)bl)->pet.class_; case BL_HOM: return ((TBL_HOM*)bl)->homunculus.class_; case BL_MER: return ((TBL_MER*)bl)->mercenary.class_; case BL_NPC: return ((TBL_NPC*)bl)->class_; case BL_ELEM: return ((TBL_ELEM*)bl)->elemental.class_; } return 0; } That part of the skill I already got. Now I need to know how to make this change above and where it makes the most changes.
  13. The emulator started to crash and crash the map-server. I used GDB and got the following information... The status.cpp and skill.cpp files for analysis are appended to the topic. If anyone can help me I will be very grateful please. This is very urgent! skill.cpp status.cpp
  14. When i am a paladin and use skill AUTOGUARD and REFLECT and change to a different shield the ability comes out. How to adjust this?
  15. It did not work here. I switched and the attack cursor still appears.
  16. I would like to change the traps. During the War the attack cursor appears on the traps. I would like the mouse to stay normal and avoid "miss click". Can someone help me?
  17. Yeah, you would not get stuck in the trap. You fall into the trap you use jump and exit it.
  18. Hello, I would like to modify the ability for the Leap (Taekwon/High Jump) to jump the traps. Can someone help me please?
  19. Thank you @maken06 ? Can someone help me with the Elemental Converter?
  20. Well I would like to change the Martyr's Reckoning ability so it would not hit the user under the effect of Cicada Skin Sheeding. The other problem is that the user by enchanting the weapon with any Sinx property while changing one of the daggers loses the element.
  21. How to add reward to the losing team? https://github.com/rathena/rathena/blob/master/npc/custom/battleground/bg_pvp.txt I tried with the help of this topic but I could not, can anyone help me?
  22. Can someone provide a patch compatible with revision 17012? I tried to do everything manually over not getting hit!
×
×
  • Create New...