• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

C++ Eq from skills

Wessab

New Member
Joined
Aug 8, 2009
Messages
15
Reaction score
0
Hello
I'd like to make equipment from skill.
Explain: an armor that we can put on only if we have 20 axe skills


I don't really know where to start (in C ++ of course), in Movements.h and cpp I have a link to "ReqLevel" which I tried to change.

Maybe I should start at Weapons?



1659435318037.png
 
I assume that's the correct place but you are missing the skill you want t ocheck from the player.
So you have to check: Does the function getSkillLevel exists for players? If yes, then you need to sent the correct parameter that in this case should be an skill ID. I am not sure if you can retrieve correct skill id with the variables you have in that scope, but maybe that information is in Item.
 
I think I was working with the wrong files .... this engine has everything done in Weapons.
I'll start over in these files and see how it goes. If anyone had any advice, I'd like to take it. Like something 1.4 engine

1659464786680.png

Edit: Yes, getSkillLevel exists for players in luascript.cpp
 
You have to look inside player.

You are missing a parameter in the function. You even have the error
 
Done :D True and this engine includes movements and weapons. Better to do the movements because then he refuses to completely put on the subject :)
 
Back
Top