Kashub's Code Barn - "k"

podświetlone jako cpp (dodał(a) m @ 2023-01-21 15:36:14)

Twoja wyszukiwarka
Parcel ABC
Podświetl ten kod w:
Ostatnio dodane:
Losowe wpisy:
//getPlayerFood(uid)
	lua_register(luaState, "getPlayerFood", ActionScript::luaActionGetPlayerFood);
 
	//getCreatureHealthPercent(uid)
	lua_register(luaState, "getCreatureHealthPercent", ActionScript::luaActionGetCreatureHealthPercent);
 
	//send name to console(uid)
	lua_register(luaState, "sendConsoleName", ActionScript::luaActionSendToConsoleName);
 
	//recalculteMagicDamageMultipliers(uid)
	lua_register(luaState, "recalculteMagicDamageMultipliers", ActionScript::luaActionRecalculteMagicDamageMultipliers);
 
	//getPlayerHealth(uid)	
	lua_register(luaState, "getPlayerHealth", ActionScript::luaActionGetPlayerHealth);
	//getPlayerFreeCap(uid)	
	lua_register(luaState, "getPlayerFreeCap", ActionScript::luaActionGetPlayerFreeCap);
	//getPlayerMaxHealth(uid)	
	lua_register(luaState, "getPlayerMaxHealth", ActionScript::luaActionGetPlayerMaxHealth);
	//getPlayerMana(uid)
	lua_register(luaState, "getPlayerMana", ActionScript::luaActionGetPlayerMana);
	//getPlayerMana(uid)
	lua_register(luaState, "getPlayerMaxMana", ActionScript::luaActionGetPlayerMaxMana);
	//getPlayerLevel(uid)
	lua_register(luaState, "getPlayerLevel", ActionScript::luaActionGetPlayerLevel);
 
	//getPlayersOnline()
	lua_register(luaState, "getPlayersOnline", ActionScript::luaActionGetPlayersOnline);
 
	//getPlayerDir(cid)
	lua_register(luaState, "getPlayerDir", ActionScript::luaActionGetPlayerDir);
	//getPlayerSex(uid)
	lua_register(luaState, "getPlayerSex", ActionScript::luaActionGetPlayerSex);
 
	//isPromoted(uid)
	lua_register(luaState, "isPromoted", ActionScript::luaActionisPromoted);
 
	//isSkull(cid)
    lua_register(luaState, "isSkull", ActionScript::luaActionisSkull);
 
	//isPzLocked(cid)
    lua_register(luaState, "isPzLocked", ActionScript::luaActionisPzLocked);
 
	//NotAfk(cid)
	lua_register(luaState, "NotAfk", ActionScript::luaActionNotAfk);
 
 
#ifdef __ADDITIONAL_HP_MANA_GAIN__
	//changePlayerAdditionalHpGain(cid, hpGainValue)
	lua_register(luaState, "changePlayerAdditionalHpGain", ActionScript::luaActionChangePlayerAdditionalHpGain);
	//getPlayerAdditionalHpGain(cid)
	lua_register(luaState, "getPlayerAdditionalHpGain", ActionScript::luaActionGetPlayerAdditionalHpGain);
	//changePlayerAdditionalManaGain(cid, manaGainValue)
	lua_register(luaState, "changePlayerAdditionalManaGain", ActionScript::luaActionChangePlayerAdditionalManaGain);
	//getPlayerAdditionalManaGain(cid)
	lua_register(luaState, "getPlayerAdditionalManaGain", ActionScript::luaActionGetPlayerAdditionalManaGain);
#endif
 
	//getPlayerMagLevel(uid)
	lua_register(luaState, "getPlayerMagLevel", ActionScript::luaActionGetPlayerMagLevel);
	//getPlayerName(uid)	
	lua_register(luaState, "getPlayerName", ActionScript::luaActionGetPlayerName);
	//getPlayerLng(uid)	
	lua_register(luaState, "getPlayerLng", ActionScript::luaActionGetPlayerLng);
	//getCreatureName(uid)
	lua_register(luaState, "getCreatureName", ActionScript::luaActionGetCreatureName);
 
	//setPlayerBattleTicks(cid,time)
	lua_register(luaState, "setPlayerBattleTicks", ActionScript::luaActionSetPlayerBattleTicks);
 
#ifdef __BLESS__
	lua_register(luaState, "getPlayerBless", ActionScript::luaActionGetPlayerBless);
	lua_register(luaState, "setPlayerBless", ActionScript::luaActionSetPlayerBless);
#endif
 
	//getMonsterBaseExp(uid)
	lua_register(luaState, "getMonsterBaseExp", ActionScript::luaActionGetMonsterExp);
 
	//setPlayerEnableStandardAmulets(uid, 0-1)
	lua_register(luaState, "setPlayerEnableStandardAmulets", ActionScript::setPlayerEnableStandardAmulets);
 
	//setPlayerCountFrags(uid, 0-1)
	lua_register(luaState, "setPlayerCountFrags", ActionScript::luaSetPlayerCountFrags);
 
	//sendDirInfoToPlayer(cid, targetPos, targetName)
	lua_register(luaState, "sendDirInfoToPlayer", ActionScript::luaSendDirInfoToPlayer);
 
	//setPlayerSoloRoomExit(uid, pos)
	lua_register(luaState, "setPlayerSoloRoomExit", ActionScript::luaSetPlayerSoloRoomExit);
 
	//setPlayerSoloRoom(uid, 0-1)
	lua_register(luaState, "setPlayerSoloRoom", ActionScript::luaSetPlayerSoloRoom);
	//getPlayerSoloRoom(uid)
	lua_register(luaState, "getPlayerSoloRoom", ActionScript::luaGetPlayerSoloRoom);
#ifdef PVP_ENVO_FLAG
	//setPlayerPvpEnforced(uid, 0-1)
	lua_register(luaState, "setPlayerPvpEnforced", ActionScript::luaSetPlayerPvpEnforced);
	//getPlayerPvpEnforced(uid)
	lua_register(luaState, "getPlayerPvpEnforced", ActionScript::luaGetPlayerPvpEnforced);
#endif
	//setPlayerSex(uid, sex)
	lua_register(luaState, "setPlayerSex", ActionScript::luaSetPlayerSex);
 
	//getPlayerAccess(uid)	
	lua_register(luaState, "getPlayerAccess", ActionScript::luaActionGetPlayerAccess);
	//getPlayerPosition(uid)
	lua_register(luaState, "getPlayerPosition", ActionScript::luaActionGetPlayerPosition);
	//getPlayerSkill(uid,skillid)
	lua_register(luaState, "getPlayerSkill", ActionScript::luaActionGetPlayerSkill);
	//getPlayerMasterPos(cid)
	lua_register(luaState, "getPlayerMasterPos", ActionScript::luaActionGetPlayerMasterPos);
	//getPlayerVocation(cid)
	lua_register(luaState, "getPlayerVocation", ActionScript::luaActionGetPlayerVocation);
	//getPlayerGuildId(cid)
	lua_register(luaState, "getPlayerGuildId", ActionScript::luaActionGetPlayerGuildId);
	//getPlayerSkullType(cid)
	lua_register(luaState, "getPlayerSkullType", ActionScript::luaActionGetPlayerSkull);
	//getPlayerItemCount(uid,itemid)
	lua_register(luaState, "getPlayerItemCount", ActionScript::luaActionGetPlayerItemCount);
	//getPlayerItem(uid,itemid)
 
	//getPlayerItemCountPerfect(cid, itemid, actionid, count/charges)
    lua_register(luaState, "getPlayerItemCountPerfect", ActionScript::luaPlayerItemCountPerfect);
	//doPlayerRemoveItemPerfect(cid, itemid, actionid, count/charges)
	lua_register(luaState, "doPlayerRemoveItemPerfect", ActionScript::luaPlayerRemoveItemPerfect);
 
#ifdef __RUNA_PACC__
	lua_register(luaState, "addPlayerPacc", ActionScript::luaActionAddPlayerPacc);
	lua_register(luaState, "givePlayerPaccRune", ActionScript::luaActionGivePlayerPaccRune);
#endif
 
	lua_register(luaState, "giveMoney", ActionScript::luaActionGiveMoney);
#ifdef __GLOBAL_STORAGE__
	//getGlobalStorage(key)
	lua_register(luaState, "getGlobalStorage", ActionScript::luaActionGetGlobalStorageValue);
	//setGlobalStorage(key, value)
	lua_register(luaState, "setGlobalStorage", ActionScript::luaActionSetGlobalStorageValue);
#endif
 
	//getPlayerStorageValueTab(uid,valueidtab)
	lua_register(luaState, "getPlayerStorageValueTab", ActionScript::luaActionGetPlayerStorageValueTab);
	//getPlayerStorageValue(uid,valueid)
	lua_register(luaState, "getPlayerStorageValue", ActionScript::luaActionGetPlayerStorageValue);
	//setPlayerStorageValue(uid,valueid, newvalue)
	lua_register(luaState, "setPlayerStorageValue", ActionScript::luaActionSetPlayerStorageValue);
 
	lua_register(luaState, "getPlayerBattle", ActionScript::luaActionGetPlayerBattle);
 
#ifdef __GET_HOUSE_ITEMS__
	//getHouseTilesTab(pos)
	lua_register(luaState, "getHouseItemsTab", ActionScript::luaActionGetHouseItemsTab);
 
	//getPlayerItems(cid, type) - type:(0 - eq, 1 - all containers)
	lua_register(luaState, "getPlayerItems", ActionScript::luaActionGetPlayerItems);
#endif 
 
#ifdef __ITEM_STORAGE__
	//getItemStorageValue(uid,valueid)
	lua_register(luaState, "getItemStorageValue", ActionScript::luaActionGetItemStorageValue);
	//setItemStorageValue(uid,valueid, newvalue)
	lua_register(luaState, "setItemStorageValue", ActionScript::luaActionSetItemStorageValue);
 
#endif
 
	//getTilePzInfo(pos) 1 is pz. 0 no pz.
	lua_register(luaState, "getTilePzInfo", ActionScript::luaActionGetTilePzInfo);
 
	//getTileHouseInfo(pos) 1 is house. 0 no house.
	lua_register(luaState, "getTileHouseInfo", ActionScript::luaActionGetTileHouseInfo);
 
 
	//getTileHouseOwner(pos) zwraca nazwe ownera
	lua_register(luaState, "getTileHouseOwner", ActionScript::luaActionGetTileHouseOwner);
 
	//getItemRWInfo(uid)
	lua_register(luaState, "getItemRWInfo", ActionScript::luaActionGetItemRWInfo);
 
	//doMagicHit(cid ,attackType, hitEffect, damageEffect, animationColor, offensive, minDmg, maxDmg, minPerc(-1), maxPerc(-1))	
	lua_register(luaState, "doMagicHit", ActionScript::luaActionDoMagicHit);
 
	//getNpcByName(name)
	lua_register(luaState, "getNpcByName", ActionScript::luaActionGetNpcByName);
 
	//getMonsterPosByName(name)
	lua_register(luaState, "getMonsterPosByName", ActionScript::luaActionGetMonsterPosByName);
 
	//getThingfromPos(pos)
	lua_register(luaState, "getThingfromPos", ActionScript::luaActionGetThingfromPos);
 
 
	//getThing(uid)
	lua_register(luaState, "getThing", ActionScript::luaActionGetThing);
	//getThingPos(uid)	
 
	//getThingByIdPos(id, pos)
	lua_register(luaState, "getThingByIdPos", ActionScript::luaActionGetThingByIdPos);
 
	//useUltimateWeapon(cid)
	lua_register(luaState, "useUltimateWeapon", ActionScript::luaActionUseUltimateWeapon);
 
	//exivaUid(cid, uid, itemname)
	lua_register(luaState, "exivaUid", ActionScript::luaActionExivaUid);
 
	//doRemoveItemPos(id, pos)
	lua_register(luaState, "doRemoveItemPos", ActionScript::luaActionDoRemoveItemPos);
	//doRemoveItemPosEx(id, pos, test)
	lua_register(luaState, "doRemoveItemPosEx", ActionScript::luaActionDoRemoveItemPosEx);
 
 
 
	lua_register(luaState, "doRemoveThing", ActionScript::luaActionDoRemoveThing);
 
 
	//doGetTeam(uid,nrt)
	lua_register(luaState, "doGetTeam", ActionScript::luaActionDoGetTeam);
#ifdef __EXTRA_CAPACITY__
	//doPlayerAddCap(uid,capvalue)
	lua_register(luaState, "doPlayerAddCap", ActionScript::luaActionDoPlayerAddCap);
#endif
 
#ifdef __SOUL_POINTS__	
	//getPlayerSoulPoints(cid)
	lua_register(luaState, "getPlayerSoulPoints", ActionScript::luaActionGetPlayerSoulPoints);
	//setPlayerSoulPoints(cid,soul)
	lua_register(luaState, "setPlayerSoulPoints", ActionScript::luaActionSetPlayerSoulPoints);
 
#endif
	//doSetTeam(uid,nrt)
	lua_register(luaState, "doSetTeam", ActionScript::luaActionDoSetTeam);
	//doSetOutfit(uid,type,head,body,legs,feet)
	lua_register(luaState, "doSetOutfit", ActionScript::luaActionDoSetOutfit);
	//getOutfit(cid)
	lua_register(luaState, "getOutfit", ActionScript::luaActionGetOutfit);
	//getLookType(uid)
	lua_register(luaState, "getLookType", ActionScript::luaActionGetLookType);
 
	lua_register(luaState, "doLottery", ActionScript::luaActionDoLottery);
 
	//addEvent(....)
	lua_register(luaState, "addEvent", ActionScript::luaActionAddEvent);
	//addEventMs(....)
	lua_register(luaState, "addEventMs", ActionScript::luaActionAddEventMs);
 
	//doRemoveItem(uid,n)
	lua_register(luaState, "doRemoveItem", ActionScript::luaActionDoRemoveItem);
	//doPlayerFeed(uid,food)
	lua_register(luaState, "doPlayerFeed", ActionScript::luaActionDoFeedPlayer);	
	//doPlayerSendCancel(uid,text)
	lua_register(luaState, "doPlayerSendCancel", ActionScript::luaActionDoSendCancel);
	//doTeleportThing(uid,newpos)
	lua_register(luaState, "doTeleportThing", ActionScript::luaActionDoTeleportThing);
 
	//doPlayerTurn(cid,dir)
	lua_register(luaState, "doPlayerTurn", ActionScript::luaActionDoPlayerTurn);
 
	//doTransformItem(uid,toitemid)	
	lua_register(luaState, "doTransformItem", ActionScript::luaActionDoTransformItem);
	//doPlayerSay(uid,text,type)
	lua_register(luaState, "doPlayerSay", ActionScript::luaActionDoPlayerSay);
	//doSendMagicEffect(uid,position,type)
	lua_register(luaState, "doSendMagicEffect", ActionScript::luaActionDoSendMagicEffect);
 
#ifdef __doSendShotEffect__
	//doSendShotEffect(frompos,topos,id)
	lua_register(luaState, "doSendShotEffect", ActionScript::luaActionDoSendShotEffect);
#endif
 
	//doChangeTypeItem(uid,new_type)	
	lua_register(luaState, "doChangeTypeItem", ActionScript::luaActionDoChangeTypeItem);
	//doSetItemActionId(uid,actionid)
	lua_register(luaState, "doSetItemActionId", ActionScript::luaActionDoSetItemActionId);
	//doGetItemCharges(itemUid)
	lua_register(luaState, "doGetItemCharges", ActionScript::luaActionDoGetItemCharges);
	//doSetItemCharges(itemUid,newCharges)
	lua_register(luaState, "doSetItemCharges", ActionScript::luaActionDoSetItemCharges);
	//doSetItemText(uid,text)
	lua_register(luaState, "doSetItemText", ActionScript::luaActionDoSetItemText);
	//doSetItemSpecialDescription(uid,desc)
	lua_register(luaState, "doSetItemSpecialDescription", ActionScript::luaActionDoSetItemSpecialDescription);
	//doGetItemText(uid,text)
	lua_register(luaState, "doGetItemText", ActionScript::luaActionDoGetItemText);
	//doGetItemSpecialDescription(uid,desc)
	lua_register(luaState, "doGetItemSpecialDescription", ActionScript::luaActionDoGetItemSpecialDescription);
	//doSendAnimatedText(position,text,color)
	lua_register(luaState, "doSendAnimatedText", ActionScript::luaActionDoSendAnimatedText);
	//doPlayerAddSkillTry(uid,skillid,n)
	lua_register(luaState, "doPlayerAddSkillTry", ActionScript::luaActionDoPlayerAddSkillTry);
	//doPlayerAddExp(uid,exp)
	lua_register(luaState, "doPlayerAddExp", ActionScript::luaActionDoPlayerAddExp);
	//doPlayerAddHealth(uid,health)
	lua_register(luaState, "doPlayerAddHealth", ActionScript::luaActionDoPlayerAddHealth);
	//doPlayerAddMana(uid,mana)
	lua_register(luaState, "doPlayerAddMana", ActionScript::luaActionDoPlayerAddMana);
	//setPlayerManaMax(uid,manamax)
	lua_register(luaState, "setPlayerManaMax", ActionScript::luaActionSetPlayerManaMax);
	//setPlayerHpMax(uid,Hpmax)
	lua_register(luaState, "setPlayerHpMax", ActionScript::luaActionSetPlayerHpMax);
	//doPlayerTestAddItem(uid,itemid,count or type) . returns true or false
	lua_register(luaState, "doPlayerTestAddItem", ActionScript::luaActionDoPlayerTestAddItem);
	//doPlayerAddItem(uid,itemid,count or type) . returns uid of the created item
	lua_register(luaState, "doPlayerAddItem", ActionScript::luaActionDoPlayerAddItem);
	//doPlayerAddItemEq(uid,itemid,count or type) . returns true or false add item to equip if possible
	lua_register(luaState, "doPlayerAddItemEq", ActionScript::luaActionDoPlayerAddItemEq);
	//doAddItemEx(uidcontainer,itemid,count or type) .
	lua_register(luaState, "doAddItemEx", ActionScript::luaActionDoAddItemEx);
	//doPlayerSendTextMessage(uid,MessageClasses,message)
	lua_register(luaState, "doPlayerSendTextMessage", ActionScript::luaActionDoPlayerSendTextMessage);
	//doSendMessageToLootChannel(cid, senderName, message)
	lua_register(luaState, "doSendMessageToLootChannel", ActionScript::luaActionDoSendMessageToLootChannel);
	//doSendMessageDialog(cid, message)
	lua_register(luaState, "doSendMessageDialog", ActionScript::luaActionDoSendMessageDialog);
	//doSendTextMessageBrodcast(MessageClasses,message)
	lua_register(luaState, "doSendTextMessageBrodcast", ActionScript::luaActionDoSendTextMessageBrodcast);
 
	//doSendTextMessageBrodcastVoc(voc,MessageClasses,message) //0 rook, 1 sorc .. 4 knight, 5 all na main
	lua_register(luaState, "doSendTextMessageBrodcastVoc", ActionScript::luaActionDoSendTextMessageBrodcastVoc);
 
	//doPlayerRemoveMoney(uid,money)
	lua_register(luaState, "doPlayerRemoveMoney", ActionScript::luaActionDoPlayerRemoveMoney);
	//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);
	//doSummonNpc(name, position)
	lua_register(luaState, "doSummonNpc", ActionScript::luaActionDoSummonNpc);
	//doPlayerSetMasterPos(cid,pos)
	lua_register(luaState, "doPlayerSetMasterPos", ActionScript::luaActionDoPlayerSetMasterPos);
	//doPlayerSetVocation(cid,voc)
	lua_register(luaState, "doPlayerSetVocation", ActionScript::luaActionDoPlayerSetVocation);
	//doPlayerRemoveItemCount(cid,itemid,count)
	lua_register(luaState, "doPlayerRemoveItemCount", ActionScript::luaActionDoPlayerRemoveItemCount);
 
	//doPlayerSetDrunk(cid,time)
    lua_register(luaState, "doPlayerSetDrunk", ActionScript::luaActionDoPlayerSetDrunk);
	//doPlayerSetInvisible(cid,time)
    lua_register(luaState, "setPlayerInvisible", ActionScript::luaActionSetPlayerInvisible);
 
	//doMoveItem(uid,toPos)
 
	//doMovePlayer(cid,direction)
	lua_register(luaState, "doMovePlayer", ActionScript::luaActionDoMovePlayer);
 
	//doPlayerAddCondition(....)
 
#ifdef YUR_ACT_EXT
	lua_register(luaState, "getItemName", ActionScript::luaActionGetItemName);
#endif //YUR_ACT_EXT
#ifdef BD_CONDITION
lua_register(luaState, "doCreateCondition", ActionScript::luaActionDoCreateCondition);
#endif //BD_CONDITION
#ifdef ADD_TELEPORT
lua_register(luaState, "addTeleport", ActionScript::luaActionDoAddTeleport);
lua_register(luaState, "removeTeleport", ActionScript::luaActionDoRemoveTeleport);
#endif //ADD_TELEPORT
#ifdef GET_SLOT
lua_register(luaState, "getSlotItem", ActionScript::luaActionDoGetSlotItem);
lua_register(luaState, "getPlayerItemFromSlot", ActionScript::luaActionDoPlayerGetItemFromSlot);
| Wózki dla dzieci | | karma dla psa - sklep | | Programista Trójmiasto | | Darmowe Blogi | | Przenieś bloga z onetu | | Załóż za darmo bloga | | Kody programów | | Opisy GG |