Jump to content

All Activity

This stream auto-updates

  1. Past hour
  2. Then you need the src change for it.
  3. None of the functions worked. I want the skull with the player's name to go into the inventory. The options presented are for a skull without a name, creating any skull.
  4. Today
  5. Rent_Prontera.txtRent_Functions.txtRent_Engine.txt Can someone tell me or help me how to fix the following errors and maybe remake the script into a working one?
  6. Hi //===== rAthena Script ======================================= //= https://rathena.org/board/topic/141811-npc-refiner-vip-and-non-vip/ //============================================================ prontera,170,181,4 script Refiner VIP 4_4JOB_MAURA,{ disable_items; cutin "4job_maura_01.PNG",2; mes "[Refiner VIP]"; mes "Greetings!"; mes "I can refine an item up to the ^006400+10^000000 to ^0000FFVIP adventurers^000000..."; mes "You don't have to worry! There's no chance of breaking your item."; if (vip_status(VIP_STATUS_ACTIVE)) .@r = 10; else { next; mes "[Refiner VIP]"; mes "Since you're not a VIP, I can refine your items to ^006400+7^000000."; .@r = 7; } next; setarray .@position$[1],"Head upper","Armor","Left hand","Right hand","Robe","Shoes","Accessory 1","Accessory 2","Head middle","Head lower"; setarray .@indices[1], EQI_HEAD_TOP, EQI_ARMOR, EQI_HAND_L, EQI_HAND_R, EQI_GARMENT, EQI_SHOES, EQI_ACC_L, EQI_ACC_R, EQI_HEAD_MID, EQI_HEAD_LOW; switch(select("Refine everything", "Choose equipment", "Remove refine", "Cancel")) { mes "[Refiner VIP]"; case 1: mes "I'm going to refine every refinable item you have equipped up to the +" + .@r + " level^000000."; mes "May I proceed?"; next; if(select("No.", "Yes.") == 1) { emotion ET_THINK; mes "[Refiner VIP]"; mes "Oh, you changed your mind."; mes "Ok."; mes "You can come back later."; close3; } for (.@i = 1; .@i < getarraysize(.@indices); .@i++) { if (getequipisequiped(.@indices[.@i]) && getequipisenableref(.@indices[.@i]) && getequiprefinerycnt(.@indices[.@i]) < .@r) { successrefitem .@indices[.@i], .@r - getequiprefinerycnt(.@indices[.@i]); .@refined++; } } mes "[Refiner VIP]"; if (.@refined) { specialeffect EF_SUI_EXPLOSION; mes "Alright, it is done~"; mes "I refined " + F_InsertPlural(.@refined, "item") + "!"; } else mes "There is nothing to refine..."; close3; case 2: break; case 3: .@remove = true; mes "This is rare. But sure..."; break; case 4: mes "Okay. You can come again later."; close3; } mes "Please choose the equipment."; for ( .@i = 1; .@i <= 10; ++.@i ) .@menu$ += (getequipisequiped(.@indices[.@i]) ? getequipname(.@indices[.@i]) : .@position$[.@i] + "- [Empty]") + ":"; .@part = .@indices[ select(.@menu$) ]; clear; if (!getequipisequiped(.@part)) { mes "[Refiner VIP]"; mes "You have to equip the item you want to refine."; close3; } if (!getequipisenableref(.@part)) { emotion ET_OTL; mes "[Refiner VIP]"; mes "Oh, I'm sorry."; mes "This item is impossible to refine."; close3; } .@refineitemid = getequipid(.@part); // save id of the item .@refinerycnt = getequiprefinerycnt(.@part); //save refinery count setarray .@card[0], getequipcardid(.@part,0), getequipcardid(.@part,1), getequipcardid(.@part,2), getequipcardid(.@part,3); if (.@remove) { if (!getequiprefinerycnt(.@part)) { mes "[Refiner VIP]"; mes "^8B4513This item has no refine.^000000"; mes "I can't proceed."; close3; } } else if (getequiprefinerycnt(.@part) >= .@r) { emotion ET_PROFUSELY_SWEAT; mes "[Refiner VIP]"; mes "^8B4513This item is already refined as much as your deed.^000000"; if (getequiprefinerycnt(.@part) < 10 && !vip_status(VIP_STATUS_ACTIVE)) { mes "You can become a ^0000FFVIP adventurer^000000 to continue using my services."; } else mes "Please come along with an item refined less than +" + .@r + "."; close3; } mes "[Refiner VIP]"; if (.@remove) mes "I'm going to ^8B4513remove the refine^000000 of ^006400" + getequipname(.@part) + "."; else mes "I'm going to refine ^006400"+getequipname(.@part)+"^8B4513 up to the +"+.@r+" level^000000."; mes "May I proceed?"; next; if(select("No.:Yes.") == 1) { emotion ET_THINK; mes "[Refiner VIP]"; mes "Oh, you changed your mind."; mes "Ok."; mes "You can come back later."; close3; } mes "[Refiner VIP]"; mes "Great."; mes "As you wish!"; mes "I have my own special way to refine..."; mes ".......ka boom!"; specialeffect EF_SUI_EXPLOSION; // anti-hack if (callfunc("F_IsEquipIDHack", .@part, .@refineitemid) || callfunc("F_IsEquipRefineHack", .@part, .@refinerycnt) || callfunc("F_IsEquipCardHack", .@part, .@card[0], .@card[1], .@card[2], .@card[3])) { mes "[Refiner VIP]"; emotion ET_FRET; mes "Wait a second..."; mes "Do you think I'm stupid?!"; mes "You switched the item while I wasn't looking! Get out of here!"; close3; } if (.@remove) downrefitem .@part, getequiprefinerycnt(.@part); else successrefitem .@part, .@r - getequiprefinerycnt(.@part); next; emotion ET_DELIGHT; mes "[Refiner VIP]"; mes "Alright, here it is~"; mes "Well, ^0000FF"+strcharinfo(0)+"^000000!"; mes "Congratulations. You look GREAT!"; close3; }
  7. You can use script to make it happen. Then disable the drop skull on conf. Check on this post: Also you can check this for add multiple map and reward:
  8. //01_emulator\rathena\conf\battle\player.conf / bone_drop: 0 - script PVP_Skull_Inventory -1,{ OnPCKillEvent: if (killedrid != getcharid(3)) getnameditem(7420,rid2name(killedrid)); end; }
  9. Yesterday
  10. Hi brothers, I would like your help for an NPC. For refines + 7 for non-VIP players and + 10 for VIP players. With the option to refine everything at once. Refine one item at a time. Remove refine.
  11. Hello friends, I enabled players' skulls to drop when they die in pvp as shown below. I would like this skull to go straight to the inventory, do you know what can be done? // Players' will drop a 'Skull' when killed? // Note: The 'Skull' item (ID 7420) is trade restricted by default. You need // to remove the "NoTrade" flag on the item for this feature to work. // 0 = Disabled // 1 = Dropped only in PvP maps // 2 = Dropped in all situations bone_drop: 1
  12. so far i can only figure out this part.. i guess? and now how to delete items and how to connect to original crafting script as below but using simpler function as above ? configs 1: This part should start deleting all the requirement items, and start trigger the crafting.. Configs 2:
  13. hye, i need to request on how can i minimize my current script, @Akkarin did teach me using function but it seems a bit diffrent from my previus request of HERE this script have a need of lots of tools or tool type, reapting the script over and over again might not be a wise way, but i really had no idea how to simplfy or minimize this script, could someone help me? as you can see on the part crafting there are tools requirement ( Select Tools ), and each part crafting have diffrent option of tools to select, and that was the idea, but after a while i notice if im gone use a diffrent tools for the same part crafting, means i might need to repeat the same cmd over and over again for each tools, while all it needs was changing type of tools, example : crafting sword require a hammer, and there are serval type of hammer ( hammer A, Hammer B, Hammer C, etc ) but at the end all the tools are rquire to craft the same sword. please send help to minimize and simplify my current script. thanks...
  14. It must be something is missing on your edited lua file. Please provide your error screenshot/picture.
  15. The item can be anything you like to add. Original item/custom item on your DB. What you need to do is just add this on your itemdb: https://github.com/rathena/rathena/blob/master/doc/item_db.txt#L287-L293
  16. Are there any custom items to create with this function? I couldn't find it, I wanted something different and not duplicate the sprite.
  17. Does anyone have the complete map of this feature? Hoping that someone can share it.
  18. When i open lua files using notepad its very slow and with notepad ++ it opens fast but there is always a error when logging the game,can someone help me fix this?
  19. updates about this? did you successfully fix this?
  20. Did you even read my message? The picture is from the date I posted. If you patch the file correctly it would look like that.
  21. If you want to replace job sprite for the duration item is equipped (like how it is done for santa & summer suits), use changebase <jobid> in equip script and changebase Class in unequip script.
  22. Hello friends. I would like an armor item or accessory that the player can equip to occupy the visual tab space. And this item transforms and leaves the player with a baby appearance according to the current class. item so it can look like a 3rd party. Also an item that he can have the appearance of an apprentice.
  23. I'm after an NPC where the player, when killing the mvps on the maps, announces global and gains 1 point. In the npc with the option of ranking for whoever kept the most MVPs, and an npc for the store where the player goes to exchange points for an item.
  24. how to delete points or sql table $GLOBALGUILDQUESTCOUNT and $GLOBALGUILDQUEST if player has /breakguild
  25. Yes, it would be a visual weapon. I still haven't managed to get the command right in itemdb, can you help me?
  1. Load more activity
×
×
  • Create New...