Doodman Posted June 23, 2011 Author Share Posted June 23, 2011 k so ima complete noob at source thingies so in order to get better I tried to swap around what stats doso I tried to make the Agility stat make your attack rate fasterso this is what i changed```If GetPlayerEquipment(attacker, Weapon) > 0 Then attackspeed = Item(GetPlayerEquipment(attacker, Weapon)).Speed - (GetPlayerStat(index, Agility)) Else attackspeed = 1000 - GetPlayerStat(index, Agility)```so i go to compile it and itsays that the index is undefined or something like thatso now im looking for helpThanks in advanced ;D Link to comment Share on other sites More sharing options...
river00 Posted June 23, 2011 Share Posted June 23, 2011 The index is the player. Player one would have the index of 001 and player 2 would have 002 and so on. So you need to define which index, in this case it is everyone. If you have a set number of indexes ( I am not sure this is going to work but it works on other mmo makers ) you can put in a variable representing the index or 1- how much indexes you have. PS: I dont know if you can insert codes and scripts into eclipse origins Link to comment Share on other sites More sharing options...
Robin Posted June 23, 2011 Share Posted June 23, 2011 Replace 'index' with 'attacker'. Actually read the existing code first, next time. Link to comment Share on other sites More sharing options...
The New World Posted June 23, 2011 Share Posted June 23, 2011 The attack speed is the speed given, minus the agility, the lesser the speed, the faster. It's calculated in milliseconds. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now