GoldRoger Posted August 15, 2024 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 78 Reputation: 0 Joined: 03/19/18 Last Seen: March 30 Share 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 Link to comment Share on other sites More sharing options...
0 Racaae Posted August 15, 2024 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 210 Reputation: 92 Joined: 06/02/12 Last Seen: 10 hours ago Share 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 Link to comment Share on other sites More sharing options...
0 GoldRoger Posted August 16, 2024 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 78 Reputation: 0 Joined: 03/19/18 Last Seen: March 30 Author Share 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 Link to comment Share on other sites More sharing options...
0 Poring King Posted August 16, 2024 Group: Members Topic Count: 63 Topics Per Day: 0.02 Content Count: 1016 Reputation: 191 Joined: 11/27/14 Last Seen: February 15 Share Posted August 16, 2024 Please spend time to read rAthena server documents and become more curious Quote Link to comment Share on other sites More sharing options...
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
Link to comment
Share on other sites
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.