GoldRoger Posted August 15, 2024 Posted August 15, 2024 How can i put turtle general effect card to my custom item?..also need to put if their class star gladiator and star emperor equip got extra effect Quote
0 Racaae Posted August 15, 2024 Posted August 15, 2024 Hi. You can search in your server files for how a item effect is scripted. Let's try to find Turtle General Card effect! There's 3 files for items. \db\re\item_db_usable.yml \db\re\item_db_equip.yml \db\re\item_db_etc.yml I found Turtle General Card in \db\re\item_db_etc.yml - Id: 4305 AegisName: Turtle_General_Card Name: Turtle General Card Type: Card Buy: 20 Weight: 10 Locations: Right_Hand: true Flags: BuyingStore: true DropEffect: CLIENT Script: | bonus2 bAddClass,Class_All,20; bonus3 bAutoSpell,"SM_MAGNUM",10,30; The Script part is what we are looking for. This card has 2 effects. And the Script also has 2 lines. # This item script is for the effect "ATK +20%": bonus2 bAddClass,Class_All,20; # This item script is for the effect "Add the chance of auto casting level 10 Magnum Break on enemy when doing Physical Attack.": bonus3 bAutoSpell,"SM_MAGNUM",10,30; After some search we discovered the item script for Turtle General effect card! You can check for the player BaseJob to make a extra effect for specific jobs. if (BaseJob == Job_Star_Gladiator) { # Extra effect for star gladiator and star emperor } Example: - Id: 2230000 AegisName: Turtle_General_Custom_Hat Name: Turtle General Custom Hat Type: Armor Locations: Head_Top: true ArmorLevel: 1 Refineable: true Script: | bonus2 bAddClass,Class_All,20; if (BaseJob == Job_Star_Gladiator) { bonus3 bAutoSpell,"SM_MAGNUM",10,30; } 1 Quote
0 GoldRoger Posted August 16, 2024 Author Posted August 16, 2024 if (BaseJob == Job_Star_Gladiator) { # Extra effect for star gladiator and star emperor } About this one sir..no need to put star emperor class on base job?..btw wow with good explanation sir .thank you so much Quote
0 Poring King Posted August 16, 2024 Posted August 16, 2024 Please spend time to read rAthena server documents and become more curious Quote
Question
GoldRoger
How can i put turtle general effect card to my custom item?..also need to put if their class star gladiator and star emperor equip got extra effect
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.