GID Error

Tio Akima

New member
Messages
349
Points
0
Age
36
Discord
TioAkima#0636
Github
Tio Akima
Emulator
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

 
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.

View attachment getunitdata_pc_type.diff

 
Last edited by a moderator:
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.

View attachment 5616
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/

 
Last edited by a moderator:
Back
Top