Tio Akima 74 Posted January 7, 2020 I'm trying to return the player matak using getunitdata, but it's giving error .. where am I going wrong? .@mymagicatak = getunitdata(getcharid(CHAR_ID_ACCOUNT), UDT_MATKMAX); but I have an error [Error]: buildin_getunitdata: Unknown object! I tried to get gid with CHAR_ID_CHAR but it didn't work either Quote Share this post Link to post Share on other sites
1 Cretino 48 Posted January 7, 2020 (edited) 9 hours ago, Tio Akima said: I'm trying to return the player matak using getunitdata, but it's giving error .. where am I going wrong? .@mymagicatak = getunitdata(getcharid(CHAR_ID_ACCOUNT), UDT_MATKMAX); but I have an error [Error]: buildin_getunitdata: Unknown object! I tried to get gid with CHAR_ID_CHAR but it didn't work either The actual 'getunitdata' has no support for player units. This is why you receive this message error. If you want to get values from player units, you'll need to make a source modification. I made one, you can test if you want. getunitdata_pc_type.diff Edited January 7, 2020 by Cretino 1 Tio Akima reacted to this Quote Share this post Link to post Share on other sites
0 Tio Akima 74 Posted January 7, 2020 (edited) 2 hours ago, Cretino said: The actual 'getunitdata' has no support for player units. This is why you receive this message error. If you want to get values from player units, you'll need to make a source modification. I made one, you can test if you want. getunitdata_pc_type.diff 4.08 kB · 1 download oh ok... nice... thanks o/ @EDIT: @Cretino if I'm not mistaken there is no return from the basic attack on the list (batak) UDT_ATKMIN and UDT_ATKMAX are for weapons e UDT_MATKMIN and UDT_MATKMAX for magic attack LOL @EDIT2: I looked at source and added the basic attack manually .. thanks! Solved script_pushint(st, sd->battle_status.batk); o/ Edited January 7, 2020 by Tio Akima Quote Share this post Link to post Share on other sites
I'm trying to return the player matak using getunitdata, but it's giving error .. where am I going wrong?
.@mymagicatak = getunitdata(getcharid(CHAR_ID_ACCOUNT), UDT_MATKMAX);
but I have an error [Error]: buildin_getunitdata: Unknown object!
I tried to get gid with CHAR_ID_CHAR but it didn't work either
Share this post
Link to post
Share on other sites