jerryb1988
Member
- Joined
- Mar 10, 2008
- Messages
- 79
- Reaction score
- 5
I'm not really sure on how to go about this one so I'm going to make a request. I'm looking for a function where i can type like...
I'm using TFS 0.3.4 PL2. I read in the LUA_FUNCTIONS list:
getCreatureMaster(cid)
Info
This function checks creature master. Its used for summoned creatures, to check who has summoned it.
Returns
Creature master cid if found, otherwise self cid.
so i think it would be something like:
how do i do get the ??creatureid?? part? // how do i get a creatures id?
This is probably the dumbest, easiest, thing on the planet and I'm probably overlooking something simple and stupid... so I apologize now.
Code:
if isSummon(target) == true then,
code
else
code
end
I'm using TFS 0.3.4 PL2. I read in the LUA_FUNCTIONS list:
getCreatureMaster(cid)
Info
This function checks creature master. Its used for summoned creatures, to check who has summoned it.
Returns
Creature master cid if found, otherwise self cid.
so i think it would be something like:
Code:
if getCreatureMaster(target) == ??creatureid??
return FALSE -- Not summon
else
return TRUE -- Is a summon
end
how do i do get the ??creatureid?? part? // how do i get a creatures id?
This is probably the dumbest, easiest, thing on the planet and I'm probably overlooking something simple and stupid... so I apologize now.