Abandoned Element Changer 2nd weapon not loading

Status
Not open for further replies.

Caves

The Annoying Newbie
Premium
Joined
Sep 13, 2024
Messages
67
Solutions
2
Reaction score
30
Points
18
Hi guys it's me again with another help thread.
Here's what I'm having trouble with today.

Source: Eternium Source
Base: Clean V19.4

I copied a Quick Element Change feature from Eternium Source. Everything else works except for the 2nd weapon showing up when its for the blade Class.
So... I did some changes to the code to make it work for the blade class's 2nd weapon but now whenever I wear a shield it not showing up.
At this point, changing the two different weapon's element works. But when I wear a shield even when a different class, the shield doesnt show up.
Hey There!
Please login and(or) register to see this awesome content today.
Here's what I did:
Hey There!
Please login and(or) register to see this awesome content today.
Hey There!
Please login and(or) register to see this awesome content today.

I was wondering if I was doing it the right way or if there is another way thats more simpler than what I thought
 
Last edited:
Also you are checking in your if statement
if #define JOB_BLADE_MASTER 17
if #define JOB_BLADE_HERO 25

which will always return true since they are defined more than 0

 
Last edited:
Its working now. Thank you!
I guess I almost already had it and the only thing not making it work was not enabling Shield elements.

Silly me, anyway thank you to everyone that help and to @devious you gave tips/hints.

ElemChng.gif

Edit: Here's the final code:
Hey There!
Please login and(or) register to see this awesome content today.

Let me know if there are better ways to improve the code. I'm still learning. ;)
 
The if statement where you are supposedly checking players job is still not right, might aswell just remove it as it is irrelevant.
 
  • Like
Reactions: Caves
Status
Not open for further replies.