![]() |
|
LUA Functions (RonEngine): - Printable Version +- Ronit.GAMES (https://forum.ronit.games) +-- Forum: RonEngine Support / Wsparcie dla RonEngine (https://forum.ronit.games/forumdisplay.php?fid=18) +--- Forum: LUA/XML Scripting / Skryptowanie LUA/XML (https://forum.ronit.games/forumdisplay.php?fid=22) +--- Thread: LUA Functions (RonEngine): (/showthread.php?tid=681) |
LUA Functions (RonEngine): - Ron - 02-01-2012 GLOBAL: //getConfigBool(key, def = false) lua_register(L, "getConfigBool", LuaScript::luaGetConfigBool); //getConfigInt(key, def = 0) lua_register(L, "getConfigInt", LuaScript::luaGetConfigInt); //getConfigDouble(key, def = 0) lua_register(L, "getConfigDouble", LuaScript::luaGetConfigDouble); //getConfigString(key, def = "") lua_register(L, "getConfigString", LuaScript::luaGetConfigString); //setServerExp(exprate) lua_register(L, "setServerExp", LuaScript::luaSetServerExp); //getServerExp(), return: exprate lua_register(L, "getServerExp", LuaScript::luaGetServerExp); //getServerBonusExp(), return: bonusexp lua_register(L, "getServerBonusExp", LuaScript::luaGetServerBonusExp); //setServerBonusExp(bonusexp) lua_register(L, "setServerBonusExp", LuaScript::luaSetServerBonusExp); //getServerGlobalExp(), return: globalexprate lua_register(L, "getServerGlobalExp", LuaScript::luaGetServerGlobalExp); //setServerLoot(lootrate) lua_register(L, "setServerLoot", LuaScript::luaSetServerLoot); //getServerLoot(), return: lootrate lua_register(L, "getServerLoot", LuaScript::luaGetServerLoot); //getServerSpellsList(), return: [spells array] lua_register(L, "getServerSpellsList", LuaScript::luaGetServerSpellsList); //getServerPlayers(), return: [players array] lua_register(L, "getServerPlayers", LuaScript::luaGetServerPlayers); lua_register(L, "doAreaMagic", LuaScript::luaDoAreaMagic); //getItemName(cid, item_id), return: item_name lua_register(L, "getItemName", LuaScript::luaGetItemName); //getItemSkillUse(item_uid), return: skill_id lua_register(L, "getItemSkillUse", LuaScript::luaGetItemSkillUse); //getItemAdditionalAttackPower(item_uid), return: attack_power lua_register(L, "getItemAdditionalAttackPower", LuaScript::luaGetItemAdditionalAttackPower); //getItemAdditionalAttackElement(item_uid), return: attack_element lua_register(L, "getItemAdditionalAttackElement", LuaScript::luaGetItemAdditionalAttackElement); //getItemDecayTo(item_uid), return: decay_to lua_register(L, "getItemDecayTo", LuaScript::luaGetItemDecayTo); //getItemAdditionalAttackItemByElement(item_uid, element), return: item_id lua_register(L, "getItemAdditionalAttackItemByElement", LuaScript::luaGetItemAdditionalAttackItemByElement); //getItemName(cid, item_id), return: item_name lua_register(L, "isItemStackable", LuaScript::luaIsItemStackable); //getWeaponAttack(player_cid) lua_register(L, "getWeaponAttack", LuaScript::luaGetWeaponAttack); //getWeaponRechargeCost(weapon_attack) lua_register(L, "getWeaponRechargeCost", LuaScript::luaGetWeaponRechargeCost); //getCreatureName(cid), return: creature_name lua_register(L, "getCreatureName", LuaScript::luaGetCreatureName); //getCreatureName(cid), return: creature_name lua_register(L, "getCreatureTarget", LuaScript::luaGetCreatureTarget); //getMessage(cid, message id from language-sys.xml / language-reg.xml) lua_register(L, "getMessage", LuaScript::luaGetMessage); lua_register(L, "isTile", LuaScript::luaIsTile); lua_register(L, "doCreateTile", LuaScript::luaDoCreateTile); lua_register(L, "doDeleteTile", LuaScript::luaDoDeleteTile); lua_register(L, "isBlocking", LuaScript::luaIsBlocking); //isCreature(cid), return: 1 - creature exists, 0 - creature does not exist lua_register(L, "isCreature", LuaScript::luaIsCreature); //isPlayer(cid), return: 1 - players exists, 0 - player does not exist lua_register(L, "isPlayer", LuaScript::luaIsPlayer); lua_register(L, "addExperience", LuaScript::luaAddExperience); lua_register(L, "getItemAttributes", LuaScript::luaGetItemAttributes); lua_register(L, "setItemAttributes", LuaScript::luaSetItemAttributes); //setItemAttribute(item_uid, attributes) lua_register(L, "setItem", LuaScript::luaSetItem); lua_register(L, "setItemCount", LuaScript::luaSetItemCount); lua_register(L, "setItemNotMoveable", LuaScript::luaSetItemNotMoveable); lua_register(L, "isPZTile", LuaScript::luaIsPZTile); lua_register(L, "isPvpArenaTile", LuaScript::luaIsPvpArenaTile); //getSpectators(centerpos, rangex, rangey[, multifloor]) lua_register(L, "getSpectators", LuaScript::luaGetSpectators); //getContainerItems(item_uid): items lua_register(L, "getContainerItems", LuaScript::luaGetContainerItems); //addContainerItem(item_uid, itemid, count): uid lua_register(L, "addContainerItem", LuaScript::luaAddContainerItem); //getPlayerStorageValue(uid,valueid) lua_register(L, "getPlayerStorageValue", LuaScript::luaGetPlayerStorageValue); //setPlayerStorageValue(uid,valueid, newvalue) lua_register(L, "setPlayerStorageValue", LuaScript::luaSetPlayerStorageValue); //doPlayerAddHealth(uid,health) lua_register(L, "doPlayerAddHealth", LuaScript::luaDoPlayerAddHealth); //doPlayerAddHealth(uid,health) lua_register(L, "doPlayerLogout", LuaScript::luaDoPlayerLogout); //doSendSound(soundID, position) lua_register(L, "doSendSound", LuaScript::luaDoSendSound); //doPlayerPlaySound(cid, soundID, volume = 255, offset = 100) lua_register(L, "doPlayerPlaySound", LuaScript::luaDoPlayerPlaySound); //getPlayerClientOS(cid) lua_register(L, "getPlayerClientOS", LuaScript::luaGetPlayerClientOS); //doPlayerEditSubowners(cid) lua_register(L, "doPlayerEditSubowners", LuaScript::luaDoPlayerEditSubowners); //doPlayerEditGuests(cid) lua_register(L, "doPlayerEditGuests", LuaScript::luaDoPlayerEditGuests); //doPlayerEditDoorOwners(cid) lua_register(L, "doPlayerEditDoorOwners", LuaScript::luaDoPlayerEditDoorOwners); //doPlayerKickFromHouse(cid, name) lua_register(L, "doPlayerKickFromHouse", LuaScript::luaDoPlayerKickFromHouse); //doPlayerSendCancel(cid, text) lua_register(L, "doPlayerSendCancel", LuaScript::luaDoPlayerSendCancel); //doPlayerSendSkills(cid) lua_register(L, "doPlayerSendSkills", LuaScript::luaDoPlayerSendSkills); //getPlayerSummonCount(cid) lua_register(L, "getPlayerSummonCount", LuaScript::luaGetPlayerSummonCount); //doPlayerPlaceSummon(cid,name) lua_register(L, "doPlayerPlaceSummon", LuaScript::luaDoPlayerPlaceSummon); //getCreatureCidByName(name,num) lua_register(L, "getCreatureCidByName", LuaScript::luaGetCreatureCidByName); //getPlayerSkill(uid,skillid) lua_register(L, "getPlayerSkill", LuaScript::luaGetPlayerSkill); //getPlayerSkillTries(uid, skillid) lua_register(L, "getPlayerSkillTries", LuaScript::luaGetPlayerSkillTries); //getPlayerReqSkillTries(uid, skillid, level) lua_register(L, "getPlayerReqSkillTries", LuaScript::luaGetPlayerReqSkillTries); //setPlayerSkill(uid, skillid, value) lua_register(L, "setPlayerSkill", LuaScript::luaSetPlayerSkill); //setPlayerSkill(uid, skillid, value) lua_register(L, "setPlayerSkillTries", LuaScript::luaSetPlayerSkillTries); //getCreatureLookDirection(cid) lua_register(L, "getCreatureLookDirection", LuaScript::luaGetCreatureLookDirection); //getCreaturePosition(cid) lua_register(L, "getCreaturePosition", LuaScript::luaGetCreaturePosition); //getCreatureAttackSpeed(cid) lua_register(L, "getCreatureAttackSpeed", LuaScript::luaGetCreatureAttackSpeed); //getCreaturePosition(cid) lua_register(L, "getUniqueItemsReached", LuaScript::luaGetUniqueItemsReached); //doDeleteItem(posEx) lua_register(L, "doDeleteItem", LuaScript::luaDoDeleteItem); //doDeleteItemEx(itemid, pos) lua_register(L, "doDeleteItemEx", LuaScript::luaDoDeleteItemEx); //doCreateItem(itemid,type or count,position) .only working on ground. returns uid of the created item lua_register(L, "doCreateItem", LuaScript::luaDoCreateItem); //getPlayerPZ(uid) lua_register(L, "getPlayerPZ", LuaScript::luaGetPlayerPZ); //getPlayerFood(uid) lua_register(L, "getPlayerFood", LuaScript::luaGetPlayerFood); //getPlayerLastLogin(uid) lua_register(L, "getPlayerLastLogin", LuaScript::luaGetPlayerLastLogin); //getPlayerHealth(uid) lua_register(L, "getPlayerHealth", LuaScript::luaGetPlayerHealth); //getPlayerMana(uid) lua_register(L, "getPlayerMana", LuaScript::luaGetPlayerMana); //getPlayerLevel(uid) lua_register(L, "getPlayerLevel", LuaScript::luaGetPlayerLevel); //getPlayerMagLevel(uid) lua_register(L, "getPlayerMagLevel", LuaScript::luaGetPlayerMagLevel); //getPlayerName(uid) lua_register(L, "getPlayerName", LuaScript::luaGetPlayerName); //getPlayerCid(name) lua_register(L, "getPlayerCid", LuaScript::luaGetPlayerCid); //getPlayerGUID(cid) lua_register(L, "getPlayerGUID", LuaScript::luaGetPlayerGUID); //getPlayerAccess(cid) lua_register(L, "getPlayerAccess", LuaScript::luaGetPlayerAccess); //getPlayerPosition(cid) lua_register(L, "getPlayerPosition", LuaScript::luaGetPlayerPosition); //getPlayerMasterPos(cid) lua_register(L, "getPlayerMasterPos", LuaScript::luaGetPlayerMasterPos); //getPlayerVocation(cid) lua_register(L, "getPlayerVocation", LuaScript::luaGetPlayerVocation); //getPlayerSex(cid) lua_register(L, "getPlayerSex", LuaScript::luaGetPlayerSex); //getPlayerFightTicks(uid) lua_register(L, "getPlayerFightTicks", LuaScript::luaGetPlayerFightTicks); //getPlayerMaxDamage(cid, noDist) lua_register(L, "getPlayerMaxDamage", LuaScript::luaGetPlayerMaxDamage); //getPlayerMinDamage(cid, noDist) lua_register(L, "getPlayerMinDamage", LuaScript::luaGetPlayerMinDamage); //doPlayerSendTextMessage(cid, messageClass, message) lua_register(L, "doPlayerSendTextMessage", LuaScript::luaDoPlayerSendTextMessage); //doSendBroadcastTextMessage(messageClass, message) lua_register(L, "doSendBroadcastTextMessage", LuaScript::luaDoSendBroadcastTextMessage); //doAddMagicEffectToLoop(uid,id,position,type,period) lua_register(L, "doAddMagicEffectToLoop", LuaScript::luaDoAddMagicEffectToLoop); //doRemoveMagicEffectFromLoop(uid,id) lua_register(L, "doRemoveMagicEffectFromLoop", LuaScript::luaDoRemoveMagicEffectFromLoop); //doPlayerSendTutorial(cid,tutorial) lua_register(L, "doPlayerSendTutorial", LuaScript::luaDoPlayerSendTutorial); //doPlayerSendAddMarker(cid,pos,type,desc) lua_register(L, "doPlayerSendAddMarker", LuaScript::luaDoPlayerSendAddMarker); //doPlayerTeleport(cid,position) lua_register(L, "doPlayerTeleport", LuaScript::luaDoPlayerTeleport); //doSendMagicEffect(position,type) lua_register(L, "doSendMagicEffect", LuaScript::luaDoSendMagicEffect); //doSendShootEffect(fromPos,toPos,type) lua_register(L, "doSendShootEffect", LuaScript::luaDoSendShootEffect); //doPlayerUsePremiumItem(cid, uid, count, lua_register(L, "doUsePremiumItem", LuaScript::luaDoUsePremiumItem); //doPlayerSay(cid,text,type) lua_register(L, "doPlayerSay", LuaScript::luaDoPlayerSay); //doSendAnimatedText(position,text,color) lua_register(L, "doSendAnimatedText", LuaScript::luaDoSendAnimatedText); //doClearTempKilledMonsterCount(cid,monster) lua_register(L, "doClearTempKilledMonsterCount", LuaScript::luaDoClearTempKilledMonsterCount); //getGlobalKilledMonsterCount(cid,monster) lua_register(L, "getGlobalKilledMonsterCount", LuaScript::luaGetGlobalKilledMonsterCount); //getTempKilledMonsterCount(cid,monster) lua_register(L, "getTempKilledMonsterCount", LuaScript::luaGetTempKilledMonsterCount); //setPlayerStamina(cid,stamina) lua_register(L, "setPlayerStamina", LuaScript::luaSetPlayerStamina); //setPlayerHealthRefiling(cid,state [true / false]) lua_register(L, "setPlayerHealthRefiling", LuaScript::luaSetPlayerHealthRefiling); //setPlayerManaRefiling(cid,state [true / false]) lua_register(L, "setPlayerManaRefiling", LuaScript::luaSetPlayerManaRefiling); //isPlayerMarried(cid) lua_register(L, "isPlayerMarried", LuaScript::luaIsPlayerMarried); //setPlayerMarriedTo(cid,name) lua_register(L, "setPlayerMarriedTo", LuaScript::luaSetPlayerMarriedTo); //getPlayerMarriedTo(cid) lua_register(L, "getPlayerMarriedTo", LuaScript::luaGetPlayerMarriedTo); //getPlayerMarriedTime(cid) lua_register(L, "getPlayerMarriedTime", LuaScript::luaGetPlayerMarriedTime); //doPlayerAddSpell(cid, spell_name) lua_register(L, "doPlayerAddSpell", LuaScript::luaDoPlayerAddSpell); //doPlayerRemoveSpell(cid, spell_name) lua_register(L, "doPlayerRemoveSpell", LuaScript::luaDoPlayerRemoveSpell); //getPlayerSpell(cid, spell_name) lua_register(L, "getPlayerSpell", LuaScript::luaGetPlayerSpell); //isBloodPartner(cid,name) lua_register(L, "isBloodPartner", LuaScript::luaIsBloodPartner); //doPlayerAddBloodPartner(cid,name) lua_register(L, "doPlayerAddBloodPartner", LuaScript::luaDoPlayerAddBloodPartner); //doPlayerRemoveBloodPartner(cid,name) lua_register(L, "doPlayerRemoveBloodPartner", LuaScript::luaDoPlayerRemoveBloodPartner); //getPlayerBloodPartnersCount(cid) lua_register(L, "getPlayerBloodPartnersCount", LuaScript::luaGetPlayerBloodPartnersCount); //getPlayerBloodPartnerTime(cid,name) lua_register(L, "getPlayerBloodPartnerTime", LuaScript::luaGetPlayerBloodPartnerTime); //setPlayerResidence(cid,town) lua_register(L, "setPlayerResidence", LuaScript::luaSetPlayerResidence); //doPlayerSetVocation(cid,voc) lua_register(L, "doPlayerSetVocation", LuaScript::luaDoPlayerSetVocation); //getCurrentOutfit(cid) lua_register(L, "getCurrentOutfit", LuaScript::luaGetCurrentOutfit); //isPlayerInArea(pos,range) lua_register(L, "isPlayerInArea", LuaScript::luaIsPlayerInArea); //addEvent(function, delay, params), return eventid lua_register(L, "addEvent", LuaScript::luaAddEvent); //stopEvent(eventid) lua_register(L, "stopEvent", LuaScript::luaStopEvent); //doHitPlayer(cid,type,color,damage) lua_register(L, "doHitPlayer", LuaScript::luaDoHitPlayer); //creatureAttack(cid, vid, fighttype, attacktype, magiceffect, shoottype, color, damage) lua_register(L, "creatureAttack", LuaScript::luaCreatureAttack); //doTransformItem(uid,toitemid) lua_register(L, "doTransformItem", LuaScript::luaDoTransformItem); //doTransformItemEx(itemid,toid,pos) lua_register(L, "doTransformItemEx", LuaScript::luaDoTransformItemEx); //doPlayerRemoveMoney(cid,money) lua_register(L, "doPlayerRemoveMoney", LuaScript::luaDoPlayerRemoveMoney); //getPlayerMoney(cid) lua_register(L, "getPlayerMoney", LuaScript::luaGetPlayerMoney); //getPlayerCurrency(cid, group_id) lua_register(L, "getPlayerCurrency", LuaScript::luaGetPlayerCurrency); //doPlayerAddCurrency(cid, group_id, count) lua_register(L, "doPlayerAddCurrency", LuaScript::luaDoPlayerAddCurrency); //doPlayerRemoveCurrency(cid, group_id, count) lua_register(L, "doPlayerRemoveCurrency", LuaScript::luaDoPlayerRemoveCurrency); //getCurrencyGroupName(group_id) lua_register(L, "getCurrencyGroupName", LuaScript::luaGetCurrencyGroupName); //getCurrencyGroupID(item_id) lua_register(L, "getCurrencyGroupID", LuaScript::luaGetCurrencyGroupID); //getCurrencyElementValue(group_id, item_id) lua_register(L, "getCurrencyElementValue", LuaScript::luaGetCurrencyElementValue); //getCurrencyElementItemID(group_id, value) lua_register(L, "getCurrencyElementItemID", LuaScript::luaGetCurrencyElementItemID); //getCurrencyNextElement(group_id, value) lua_register(L, "getCurrencyNextElement", LuaScript::luaGetCurrencyNextElement); //getCurrencyPreviousElement(group_id, value) lua_register(L, "getCurrencyPreviousElement", LuaScript::luaGetCurrencyPreviousElement); //doDeleteMagic(position) lua_register(L, "doDeleteMagic", LuaScript::luaDoDeleteMagic); //canDelete(pos,topos) lua_register(L, "canDeleteMagic", LuaScript::luaCanDeleteMagic); //clearQuests(cid) lua_register(L, "clearQuests", LuaScript::luaClearQuests); //addQuest(cid,id,name) lua_register(L, "addQuest", LuaScript::luaAddQuest); //removeQuest(cid,id) lua_register(L, "removeQuest", LuaScript::luaRemoveQuest); //setQuestCompleted(cid,id,state) lua_register(L, "setQuestCompleted", LuaScript::luaSetQuestCompleted); //clearQuestMissions(cid,id) lua_register(L, "clearQuestMissions", LuaScript::luaClearQuestMissions); //addMissionToQuest(cid,id,name,description) lua_register(L, "addMissionToQuest", LuaScript::luaAddMissionToQuest); //removeMissionFromQuest(cid,id,name) lua_register(L, "removeMissionFromQuest", LuaScript::luaRemoveMissionFromQuest); //sendQuestLog(cid) lua_register(L, "sendQuestLog", LuaScript::luaSendQuestLog); //getThingFromPos(pos) lua_register(L, "getThingfromPos", LuaScript::luaGetThingFromPos); //getThingFromPos(pos) lua_register(L, "getThingFromPos", LuaScript::luaGetThingFromPos); //getThingFromPos(uid) lua_register(L, "getThing", LuaScript::luaGetThing); //getThingFromPos(pos) lua_register(L, "getCreatureByCid", LuaScript::luaGetCreatureByCid); //clearChannels(cid) lua_register(L, "clearChannels", LuaScript::luaClearChannels); //addChannel(cid,id,name) lua_register(L, "addChannel", LuaScript::luaAddChannel); //removeChannel(cid,id) lua_register(L, "removeChannel", LuaScript::luaRemoveChannel); //sendChannels(cid) lua_register(L, "sendChannels", LuaScript::luaSendChannels); lua_register(L, "getSystemMessages", LuaScript::luaGetSystemMessages); //setGlobalValue(key,value,time) lua_register(L, "setGlobalValue", LuaScript::luaSetGlobalValue); //getGlobalValue(key) lua_register(L, "getGlobalValue", LuaScript::luaGetGlobalValue); //removeGlobalValue(key) lua_register(L, "removeGlobalValue", LuaScript::luaRemoveGlobalValue); //sendPlayerFYIBox(cid, message) lua_register(luaState, "sendPlayerFYIBox", LuaScript::luaSendPlayerFYIBox); //sendPlayerSpellCooldown(cid, spellID, time) lua_register(luaState, "sendPlayerSpellCooldown", LuaScript::luaSendPlayerSpellCooldown); //sendPlayerSpellGroupCooldown(cid, groupID, time) lua_register(luaState, "sendPlayerSpellGroupCooldown", LuaScript::luaSendPlayerSpellGroupCooldown); //getTime(), return: timestamp lua_register(L, "getTime", LuaScript::luaGetTime); //log(cid, console log) lua_register(L, "log", LuaScript::luaLog); // callFuncton(functionName, parameters) lua_register(L, "callFunction", LuaScript::luaCallFunction); lua_register(luaState, "addOutfit", LuaScript::luaAddOutfit); lua_register(luaState, "remOutfit", LuaScript::luaRemOutfit); lua_register(luaState, "getOutfit", LuaScript::luaGetOutfit); lua_register(luaState, "hideOutfit", LuaScript::luaHideOutfit); lua_register(luaState, "showOutfit", LuaScript::luaShowOutfit); lua_register(luaState, "addMount", LuaScript::luaAddMount); lua_register(luaState, "remMount", LuaScript::luaRemMount); lua_register(luaState, "getMount", LuaScript::luaGetMount); lua_register(luaState, "setCurrentOutfit", LuaScript::luaSetCurrentOutfit); lua_register(luaState, "changeOutfitLock", LuaScript::luaChangeOutfitLock); lua_register(luaState, "changeOutfitUnlock", LuaScript::luaChangeOutfitUnlock); lua_register(luaState, "getSex", LuaScript::luaGetSex); lua_register(luaState, "doPlayerSetItemAsOutfit", LuaScript::luaDoPlayerSetItemAsOutfit); lua_register(luaState, "doPlayerReturnToOutfit", LuaScript::luaDoPlayerReturnToOutfit); lua_register(luaState, "doLockPlayer", LuaScript::luaDoLockPlayer); lua_register(luaState, "doUnlockPlayer", LuaScript::luaDoUnlockPlayer); lua_register(luaState, "setPlayerLoginPos", LuaScript::luaDoPlayerSetLoginPos); lua_register(luaState, "getPlayerLoginPos", LuaScript::luaDoPlayerGetLoginPos); lua_register(luaState, "doMovePlayer", LuaScript::luaDoMovePlayer); lua_register(luaState, "getPlayerBuffPower", LuaScript::luaGetPlayerBuffPower); //doPlayerAddBuff(cid, buff_id, power, seconds) lua_register(luaState, "doPlayerAddBuff", LuaScript::luaDoPlayerAddBuff); //doPlayerClearBuffs(cid) lua_register(luaState, "doPlayerClearBuffs", LuaScript::luaDoPlayerClearBuffs); //doAddPartyBuff(cid, buff_id, power, time): 1 or 0 lua_register(luaState, "doAddPartyBuff", LuaScript::luaDoAddPartyBuff); //getPlayerParty(cid): party_id lua_register(luaState, "getPlayerParty", LuaScript::luaGetPlayerParty); //getPartyCount(cid): count lua_register(luaState, "getPartyCount", LuaScript::luaGetPartyCount); lua_register(luaState, "setPlayerBuffSpeed", LuaScript::luaSetPlayerBuffSpeed); lua_register(luaState, "getPlayerBuffSpeed", LuaScript::luaGetPlayerBuffSpeed); lua_register(luaState, "setPlayer", LuaScript::luaSetPlayer); lua_register(luaState, "doCreatureTurn", LuaScript::luaDoCreatureTurn); lua_register(luaState, "doRemoveCreatureFromPos", LuaScript::luaDoRemoveCreatureFromPos); lua_register(luaState, "doPlayerAddItem", LuaScript::luaDoPlayerAddItem); lua_register(luaState, "doPlayerAddItemTable", LuaScript::luaDoPlayerAddItemTable); //doPlayerAddItem(cid, itemid, count or type): uid lua_register(luaState, "doPlayerAddItemEx", LuaScript::luaDoPlayerAddItemEx); //doPlayerClearItems(cid) lua_register(luaState, "doPlayerClearItems", LuaScript::luaDoPlayerClearItems); //getPlayerItemCount(cid, itemid) lua_register(luaState, "getPlayerItemCount", LuaScript::luaGetPlayerItemCount); lua_register(luaState, "changeSpeed", LuaScript::luaChangeSpeed); lua_register(luaState, "setSpeedEx", LuaScript::luaSetSpeedEx); lua_register(luaState, "getSpeed", LuaScript::luaGetSpeed); lua_register(luaState, "getCompetitionInfo", LuaScript::luaGetCompetitionInfo); //getPlayerPACC(cid), return: pacc_days lua_register(luaState, "getPlayerPACC", LuaScript::luaGetPlayerPACC); //getPlayerRank(cid), return rank_points lua_register(luaState, "getPlayerRank", LuaScript::luaGetPlayerRank); //setItemAddSkill(thing, skill, power) lua_register(L, "setItemAddSkill", LuaScript::luaSetItemAddSkill); //setItemAddImmunity(thing, element, power) lua_register(L, "setItemAddImmunity", LuaScript::luaSetItemAddImmunity); //getItemAddSkill(thing, skill) lua_register(L, "getItemAddSkill", LuaScript::luaGetItemAddSkill); //getItemAddImmunity(thing, element) lua_register(L, "getItemAddImmunity", LuaScript::luaGetItemAddImmunity); //getItemTypeProperty(itemid, propid) lua_register(L, "getItemTypeProperty", LuaScript::luaGetItemTypeProperty); //doChangeItemTypeProperty(itemid, propid, value) lua_register(L, "doChangeItemTypeProperty", LuaScript::luaDoChangeItemTypeProperty); //doCastSpell(cid, name, pos, vars) lua_register(L, "doCastSpell", LuaScript::luaDoCastSpell); //doThrowRune(cid, id, pos, vars) lua_register(L, "doThrowRune", LuaScript::luaDoThrowRune); //getPlayerSlotItem(cid, slot) lua_register(L, "getPlayerSlotItem", LuaScript::luaGetPlayerSlotItem); //doPlayerRemoveDist(cid) lua_register(L, "doPlayerRemoveDist", LuaScript::luaDoPlayerRemoveDist); //doPlayerAddSkillTry(cid) lua_register(L, "doPlayerAddSkillTry", LuaScript::luaDoPlayerAddSkillTry); //doPlayerAddMana(uid,mana) lua_register(L, "doPlayerAddMana", LuaScript::luaDoPlayerAddMana); //doTeleportThing(uid,newpos) lua_register(L, "doTeleportThing", LuaScript::luaDoTeleportThing); //doRemoveItem(uid,count) lua_register(L, "doRemoveCreature", LuaScript::luaDoRemoveCreature); //doRemoveItem(uid,count) lua_register(L, "doRemoveItem", LuaScript::luaDoRemoveItem); //getItemAttack(uid) lua_register(L, "getItemAttack", LuaScript::luaGetItemAttack); //getItemAmmunitionType(uid) lua_register(L, "getItemAmmunitionType", LuaScript::luaGetItemAmmunitionType); //getItemShootTypeName(uid), return (string)shootType lua_register(L, "getItemShootTypeName", LuaScript::luaGetItemShootTypeName); //getItemShootRange(uid), return (integer)shootRange lua_register(L, "getItemShootRange", LuaScript::luaGetItemShootRange); //getItemShootRange(uid), return (integer)shootRange lua_register(L, "getItemBreakChance", LuaScript::luaGetItemBreakChance); //getItemDamage(uid) lua_register(L, "getItemDamage", LuaScript::luaGetItemDamage); //getBasicDamage() lua_register(L, "getBasicDamage", LuaScript::luaGetBasicDamage); //getGlobalRankPosition(cid) lua_register(L, "getGlobalRankPosition", LuaScript::luaGetGlobalRankPosition); //getGlobalRankScore(cid) lua_register(L, "getGlobalRankScore", LuaScript::luaGetGlobalRankScore); //doSummonCreature(name, position) lua_register(L, "doSummonCreature", LuaScript::luaDoSummonCreature); //doPlaceNPC(name, position) lua_register(L, "doPlaceNPC", LuaScript::luaDoPlaceNPC); //doCreatureChangePower(uid, power[in percents]) lua_register(L, "doChangeCreaturePower", LuaScript::luaDoChangeCreaturePower); // Added 26.10.2012 //doCreatureChangePower(uid), return power[in percents] lua_register(L, "doGetCreaturePower", LuaScript::luaGetCreaturePower); // Added 27.10.2012 //spendMana(cid, mana) lua_register(L, "spendMana", LuaScript::luaSpendMana); //createConditionObject(type, ticks, buff, subId) lua_register(L, "createConditionObject", LuaScript::luaCreateConditionObject); //setConditionParam(condition, key, value) lua_register(L, "setConditionParam", LuaScript::luaSetConditionParam); //addDamageCondition(condition, count, ticks, damage) lua_register(L, "addDamageCondition", LuaScript::luaAddDamageCondition); //doAddCondition(cid, condition) lua_register(L, "doAddCondition", LuaScript::luaDoAddCondition); //doRemoveCondition(cid, type) lua_register(L, "doRemoveCondition", LuaScript::luaDoRemoveCondition); //doTargetCombatCondition(cid, target, condition, effect) lua_register(L, "doTargetCombatCondition", LuaScript::luaDoTargetCombatCondition); lua_register(L, "foundNewGuild", LuaScript::luaFoundNewGuild); lua_register(L, "disbandGuild", LuaScript::luaDisbandGuild); lua_register(L, "getPlayerGuildStatus", LuaScript::luaGetPlayerGuildStatus); lua_register(L, "setPlayerGuildStatus", LuaScript::luaSetPlayerGuildStatus); lua_register(L, "getPlayerGuildName", LuaScript::luaGetPlayerGuildName); lua_register(L, "setPlayerGuild", LuaScript::luaSetPlayerGuild); lua_register(L, "clearPlayerGuild", LuaScript::luaClearPlayerGuild); lua_register(L, "setPlayerGuildTitle", LuaScript::luaSetPlayerGuildTitle); lua_register(L, "getPlayerGuildMembers", LuaScript::luaGetPlayerGuildMembers); lua_register(L, "getPlayerGuildMembersNames", LuaScript::luaGetPlayerGuildMembersNames); Actions: //getPlayerSkill(uid,skillid) lua_register(luaState, "getPlayerSkill", ActionScript::luaActionGetPlayerSkill); //getPlayerItemCount(uid,itemid) //getPlayerItem(uid,itemid) lua_register(luaState, "getRandomNumber", ActionScript::luaActionGetRandomNumber); //getPlayerPosition(uid) lua_register(luaState, "isHouseTile", ActionScript::luaActionIsHouseTile); //getPlayerStorageValue(uid,valueid) lua_register(luaState, "getPlayerStorageValue", ActionScript::luaActionGetPlayerStorageValue); //setPlayerStorageValue(uid,valueid, newvalue) lua_register(luaState, "setPlayerStorageValue", ActionScript::luaActionSetPlayerStorageValue); //getTilePzInfo(pos) 1 is pz. 0 no pz. lua_register(luaState, "getTilePzInfo", ActionScript::luaActionGetTilePzInfo); //getItemRWInfo(uid) lua_register(luaState, "getItemRWInfo", ActionScript::luaActionGetItemRWInfo); //getThingfromPos(pos) lua_register(luaState, "getThingfromPos", ActionScript::luaActionGetThingfromPos); //doMoveItem(cid,uid,toPos) lua_register(luaState, "doMoveItem", ActionScript::luaActionDoMoveItem); //doRemoveItem(uid,n) lua_register(luaState, "doRemoveItem", ActionScript::luaActionDoRemoveItem); //doImproveItem(uid) lua_register(luaState, "doRechargeItem", ActionScript::luaActionDoRechargeItem); //doRechargeItem(uid, uid) lua_register(luaState, "doImproveItem", ActionScript::luaActionDoImproveItem); lua_register(luaState, "doAddLuckItem", ActionScript::luaActionAddLuckItem); lua_register(luaState, "doBlessItem", ActionScript::luaActionDoBlessItem); lua_register(luaState, "doAddOptionItem", ActionScript::luaActionAddOptionItem); lua_register(luaState, "doAddSkillItem", ActionScript::luaActionAddSkillItem); //doDeleteItem(pos) //doPlayerRemoveItem(cid,itemid,subtype,count,test) lua_register(luaState, "doPlayerRemoveItem", ActionScript::luaPlayerRemoveItem); lua_register(luaState, "addPlayerExhausted", ActionScript::luaAddPlayerExhausted); //addPlayerExhausted(id,ticks) lua_register(luaState, "checkPlayerExhausted", ActionScript::luaCheckPlayerExhausted); //checkPlayerExhausted(id) lua_register(luaState, "checkPlayerItem", ActionScript::luaCheckPlayerItem); //doPlayerRemoveItem(itemid) lua_register(luaState, "doDeleteItem", ActionScript::luaActionDoDeleteItem); lua_register(luaState, "doDeleteItemEx", ActionScript::luaActionDoDeleteItemEx); //canDelete(pos,topos) lua_register(luaState, "setActionIdEx", ActionScript::luaActionSetActionIdEx); lua_register(luaState, "setActionId", ActionScript::luaActionSetActionId); lua_register(luaState, "doDeleteMagic", ActionScript::luaActionDoDeleteMagic); //canDelete(pos,topos) lua_register(luaState, "doAddLuckyItem", ActionScript::luaActionDoAddLuckyItem); lua_register(luaState, "doAddPACC", ActionScript::luaActionDoAddPACC); lua_register(luaState, "doAddPremiumPoints", ActionScript::luaActionDoAddPremiumPoints); lua_register(luaState, "doChangePlayerSex", ActionScript::luaActionDoChangePlayerSex); lua_register(luaState, "doChangePlayerOwner", ActionScript::luaActionDoChangePlayerOwner); lua_register(luaState, "isOwner", ActionScript::luaActionIsOwner); lua_register(luaState, "canDelete", ActionScript::luaActionCanDelete); //canDelete(pos,topos) lua_register(luaState, "canDeleteMagic", ActionScript::luaActionCanDeleteMagic); //canDesintegrate(pos) lua_register(luaState, "canDesintegrate", ActionScript::luaActionCanDesintegrate); //canMoveTo(pos) lua_register(luaState, "canMoveTo", ActionScript::luaActionCanMoveTo); //doPlayerFeed(uid,food) lua_register(luaState, "doPlayerFeed", ActionScript::luaActionDoFeedPlayer); //doPlayerSendCancel(uid,text) lua_register(luaState, "doPlayerUpdateLight", ActionScript::luaActionDoPlayerUpdateLight); //doPlayerSendCancel(uid,text) lua_register(luaState, "doPlayerSendCancel", ActionScript::luaActionDoSendCancel); //doTeleportThing(uid,newpos) lua_register(luaState, "doTeleportThing", ActionScript::luaActionDoTeleportThing); //doTransformItem(uid,toitemid) lua_register(luaState, "doTransformItem", ActionScript::luaActionDoTransformItem); //doChangeTypeItem(uid,new_type) lua_register(luaState, "doChangeTypeItem", ActionScript::luaActionDoChangeTypeItem); //doUpdateItem(uid,item) lua_register(luaState, "doUpdateItem", ActionScript::luaActionDoUpdateItem); //doSetItemActionId(uid,actionid) lua_register(luaState, "doSetItemActionId", ActionScript::luaActionDoSetItemActionId); //doSetItemText(uid,text) lua_register(luaState, "doSetItemText", ActionScript::luaActionDoSetItemText); //doSetItemSpecialDescription(uid,desc) lua_register(luaState, "doSetItemSpecialDescription", ActionScript::luaActionDoSetItemSpecialDescription); //doPlayerAddSkillTry(uid,skillid,n) lua_register(luaState, "doPlayerAddSkillTry", ActionScript::luaActionDoPlayerAddSkillTry); //doPlayerAddHealth(uid,health) lua_register(luaState, "doPlayerAddHealth", ActionScript::luaActionDoPlayerAddHealth); //doPlayerAddMana(uid,mana) lua_register(luaState, "doPlayerAddMana", ActionScript::luaActionDoPlayerAddMana); //doPlayerAddItem(uid,itemid,count or type) . returns uid of the created item lua_register(luaState, "doPlayerAddItemEx", ActionScript::luaActionDoPlayerAddItemEx); //doShowTextWindow(uid,maxlen,canWrite) lua_register(luaState, "doShowTextWindow", ActionScript::luaActionDoShowTextWindow); //doDecayItem(uid) lua_register(luaState, "doDecayItem", ActionScript::luaActionDoDecayItem); //doCreateItem(itemid,type or count,position) .only working on ground. returns uid of the created item lua_register(luaState, "doCreateItem", ActionScript::luaActionDoCreateItem); //doSummonCreature(name, position) lua_register(luaState, "doSummonCreature", ActionScript::luaActionDoSummonCreature); //doPlayerSetMasterPos(cid,pos) lua_register(luaState, "doPlayerSetMasterPos", ActionScript::luaActionDoPlayerSetMasterPos); //doPlayerSetVocation(cid,voc) lua_register(luaState, "doPlayerSetVocation", ActionScript::luaActionDoPlayerSetVocation); //getContainerSize(uid) lua_register(luaState, "getContainerSize", ActionScript::luaActionGetContainerSize); //getContainerCapacity(uid) lua_register(luaState, "getContainerCapacity", ActionScript::luaActionGetContainerCapacity); //getContainerItem(uid,slot) lua_register(luaState, "getContainerItem", ActionScript::luaActionGetContainerItem); //doContainerRemoveItem(uid,slot) lua_register(luaState, "doContainerRemoveItem", ActionScript::luaActionDoContainerRemoveItem); //doContainerAddItem(uid,item_table) lua_register(luaState, "doContainerAddItem", ActionScript::luaActionDoContainerAddItem); NPC: lua_register(luaState, "isStillSaying", NpcScript::luaIsStillSaying); lua_register(luaState, "isMoving", NpcScript::luaIsMoving); lua_register(luaState, "selfSay", NpcScript::luaActionSay); lua_register(luaState, "selfSayDelayed", NpcScript::luaActionSayDelayed); lua_register(luaState, "stopMoving", NpcScript::luaActionStopMoving); lua_register(luaState, "startMoving", NpcScript::luaActionStartMoving); lua_register(luaState, "selfMove", NpcScript::luaActionMove); lua_register(luaState, "selfMoveTo", NpcScript::luaActionMoveTo); lua_register(luaState, "selfGetPosition", NpcScript::luaSelfGetPos); lua_register(luaState, "selfAttackCreature", NpcScript::luaActionAttackCreature); lua_register(luaState, "creatureGetName", NpcScript::luaCreatureGetName); lua_register(luaState, "creatureGetName2", NpcScript::luaCreatureGetName2); lua_register(luaState, "creatureGetPosition", NpcScript::luaCreatureGetPos); lua_register(luaState, "selfGetPosition", NpcScript::luaSelfGetPos); lua_register(luaState, "payBack", NpcScript::luaPayBack); lua_register(luaState, "getBalance", NpcScript::luaGetBalance); lua_register(luaState, "depositToBank", NpcScript::luaDepositToBank); lua_register(luaState, "withdrawFromBank", NpcScript::luaWithdrawFromBank); lua_register(luaState, "transferToBank", NpcScript::luaTransferToBank); lua_register(luaState, "changeMoney", NpcScript::luaChangeMoney); lua_register(luaState, "buy", NpcScript::luaBuyItem); lua_register(luaState, "buyEx", NpcScript::luaBuyExItem); lua_register(luaState, "buySpecial", NpcScript::luaBuySpecialItem); lua_register(luaState, "buyPACC", NpcScript::luaBuyPACC); lua_register(luaState, "removePACC", NpcScript::luaRemovePACC); lua_register(luaState, "buyKey", NpcScript::luaBuyKey); lua_register(luaState, "buyChargeItem", NpcScript::luaBuyChargeItem); lua_register(luaState, "chargeItem", NpcScript::luaChargeItem); lua_register(luaState, "getWeaponAttack", NpcScript::luaGetWeaponAttack); lua_register(luaState, "getWeaponRechargeCost", NpcScript::luaGetWeaponRechargeCost); lua_register(luaState, "buyBP", NpcScript::luaBuyBPItem); lua_register(luaState, "buyChess", NpcScript::luaBuyChess); lua_register(luaState, "isPACC", NpcScript::luaIsPACC); lua_register(luaState, "isPZLocked", NpcScript::luaIsPZLocked); lua_register(luaState, "buyBless", NpcScript::luaBuyBless); lua_register(luaState, "sell", NpcScript::luaSellItem); lua_register(luaState, "pay", NpcScript::luaPayMoney); lua_register(luaState, "doSummonCreature", NpcScript::luaDoSummonCreature); lua_register(luaState, "howMuchForSkill", NpcScript::luaHowMuchForSkill); lua_register(luaState, "buySkill", NpcScript::luaBuySkill); lua_register(luaState, "openShop", NpcScript::luaOpenShop); lua_register(luaState, "closeShop", NpcScript::luaCloseShop); lua_register(luaState, "getPlayerStorageValue", NpcScript::luaGetPlayerStorageValue); lua_register(luaState, "setPlayerStorageValue", NpcScript::luaSetPlayerStorageValue); //lua_register(luaState, "doPlayerAddItem", NpcScript::luaPlayerAddItem); lua_register(luaState, "doPlayerRemoveItem", NpcScript::luaDoPlayerRemoveItem); lua_register(luaState, "doPlayerRemoveItemEx", NpcScript::luaDoPlayerRemoveItemEx); lua_register(luaState, "doPlayerRemoveCountItem", NpcScript::luaDoPlayerRemoveCountItem); lua_register(luaState, "getPlayerLevel", NpcScript::luaGetPlayerLevel); lua_register(luaState, "doesPlayerExist", NpcScript::luaDoesPlayerExist); lua_register(luaState, "doDeleteItem", NpcScript::luaActionDoDeleteItem); lua_register(luaState, "doDeleteItemEx", NpcScript::luaActionDoDeleteItemEx); lua_register(luaState, "setActionIdEx", NpcScript::luaActionSetActionIdEx); lua_register(luaState, "doCreateItem", NpcScript::luaActionDoCreateItem); lua_register(luaState, "doTransformItemEx", NpcScript::luaActionDoTransformItemEx); lua_register(luaState, "getPlayerMoney", NpcScript::luaGetPlayerMoney); lua_register(luaState, "getVocation", NpcScript::luaGetVocation); lua_register(luaState, "setVocation", NpcScript::luaSetVocation); lua_register(luaState, "foundNewGuild", NpcScript::luaFoundNewGuild); lua_register(luaState, "disbandGuild", NpcScript::luaDisbandGuild); lua_register(luaState, "getPlayerGuildStatus", NpcScript::luaGetPlayerGuildStatus); lua_register(luaState, "setPlayerGuildStatus", NpcScript::luaSetPlayerGuildStatus); lua_register(luaState, "getPlayerGuildName", NpcScript::luaGetPlayerGuildName); lua_register(luaState, "setPlayerGuild", NpcScript::luaSetPlayerGuild); lua_register(luaState, "clearPlayerGuild", NpcScript::luaClearPlayerGuild); lua_register(luaState, "setPlayerGuildTitle", NpcScript::luaSetPlayerGuildTitle); |