-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
- 0 replies
- 716 views
-
- 0 answers
- 1015 views
-
- 0 answers
- 830 views
-
- 6 answers
- 1502 views
-
- 0 replies
- 2340 views
-

Question
MUNlZ 65
Oi pessoal eu sou o Muniz, e esto uaqui hoje para pedir a ajuda de vocês, estou com essa função aqui, e quero que ela faça retornar a um valor true se o monstro for summon e um valor false se ele não for, tfs 0.3.6 pokémon 8.54, espero a ajuda de vocês xD
int32_t LuaScriptInterface::luaIsSummonn(lua_State* L) { //isSummon(cid) ScriptEnviroment* env = getEnv(); Creature* creature = env->getCreatureByUID(popNumber(L)); Monster* monster = creature->getMonster(); if (monster->isSummon()) { lua_pushboolean(L, true); } else { lua_pushboolean(L, false); } return 1; }Link to comment
https://xtibia.com/forum/topic/235812-fun%C3%A7%C3%A3o-%E2%80%8Bint32_t-retornar-valor-true-e-false/Share on other sites
2 answers to this question
Recommended Posts