User Tools

Site Tools


building:scripts:x_sfscript

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
building:scripts:x_sfscript [2024/03/24 12:01]
EternalSenenity
building:scripts:x_sfscript [2024/03/25 13:14] (current)
EternalSenenity Probably best not to encorage people to play with this stuff.
Line 25: Line 25:
   * int GetBannedFromServers(object oPlayer);   * int GetBannedFromServers(object oPlayer);
   * int GetSystemTime();​   * int GetSystemTime();​
-  * void ShutdownServer(int nForce=0); 
   * void SetTMILimit(int nLimit);   * void SetTMILimit(int nLimit);
-  * int FileDelete(string sFile); 
-  * int FileRename(string sFrom, string sTo); 
   * int GetProcessMemoryUsage();​   * int GetProcessMemoryUsage();​
   * int GetSinglePCPartExtraData(string sXDATA, int nExtraInfo, int nInfoParam);​   * int GetSinglePCPartExtraData(string sXDATA, int nExtraInfo, int nInfoParam);​
Line 34: Line 31:
   * float GetSinglePCPartExtraDataFloat(string sXDATA, int nExtraInfo);​   * float GetSinglePCPartExtraDataFloat(string sXDATA, int nExtraInfo);​
   * string SetSinglePCPartExtraDataFloat(string sXDATA, int nExtraInfo, float fValue);   * string SetSinglePCPartExtraDataFloat(string sXDATA, int nExtraInfo, float fValue);
-  * string SQLEncodeSpecialChars(string sToEncode); 
-  * object SQLGetObject(int nColumnIndex,​ location lLocation, object oOwner=OBJECT_INVALID);​ 
-  * int SQLFetch(); 
-  * string SQLGetData(int nColumnIndex);​ 
-  * int SQLGetInt(int nColumnIndex);​ 
-  * float SQLGetFloat(int nColumnIndex);​ 
-  * int SQLStoreObject(string sSQL, object oObject); 
-  * object SQLRetrieveObject(string sSQL, location lLocation, object oOwner=OBJECT_INVALID);​ 
-  * dbresult SQLExec(string sSQL); 
-  * string SQLQuote(string sToEncode); 
-  * void SendUDPMessage(int nPort, string sMessage); 
   * int GetLastDialogReplyTime(object oCreature);   * int GetLastDialogReplyTime(object oCreature);
   * object GetDialogWith(object oObject);   * object GetDialogWith(object oObject);
Line 255: Line 241:
   * int _AddRemotePlayer(object oCreature, int bIsDM, string sPlayerName);​   * int _AddRemotePlayer(object oCreature, int bIsDM, string sPlayerName);​
   * void _DeleteRemotePlayer(int nPlayerId);   * void _DeleteRemotePlayer(int nPlayerId);
-effect EffectVisualEffectWithXDATA(string sXDATA, int nVisualEffectId,​ int nMissEffect=FALSE);​+  * effect EffectVisualEffectWithXDATA(string sXDATA, int nVisualEffectId,​ int nMissEffect=FALSE);​
   * string GetVisualEffectXDATA(effect eVFX);   * string GetVisualEffectXDATA(effect eVFX);
   * object GetFirstSoundObjectInArea(object oArea);   * object GetFirstSoundObjectInArea(object oArea);
Line 324: Line 310:
   * void Spacer_322();​   * void Spacer_322();​
   * void Spacer_323();​   * void Spacer_323();​
-  * int SQLAffectedRows();​ 
   * void SetPlayerCharacterName(object oPC, string sName);   * void SetPlayerCharacterName(object oPC, string sName);
   * void SetCreatureDisplayName(object oPC, string sName);   * void SetCreatureDisplayName(object oPC, string sName);
Line 344: Line 329:
   * string GetEffectTag(effect e);   * string GetEffectTag(effect e);
   * void SetEffectTag(effect e, string sTag);   * void SetEffectTag(effect e, string sTag);
-  * array GetLocalVariablesOfTypeWithPrefix(object o, int nType, string sPrefix); +  * array [[https://​forum.sinfar.net/​viewtopic.php?​p=91249&​hilit=GetLocalVariableCount#​p91249|GetLocalVariablesOfTypeWithPrefix]](object o, int nType, string sPrefix); 
-  * int DeleteLocalVariablesOfTypeWithPrefix(object o, int nType, string sPrefix); +  * int [[https://​forum.sinfar.net/​viewtopic.php?​p=91249&​hilit=GetLocalVariableCount#​p91249|DeleteLocalVariablesOfTypeWithPrefix]](object o, int nType, string sPrefix); 
-  * int GetLocalVariableCount(object o); +  * int [[https://​forum.sinfar.net/​viewtopic.php?​p=91249&​hilit=GetLocalVariableCount#​p91249|GetLocalVariableCount]](object o); 
-  * array GetLocalVariableAtIndex(object o, int nIndex); +  * array [[https://​forum.sinfar.net/​viewtopic.php?​p=91249&​hilit=GetLocalVariableCount#​p91249|GetLocalVariableAtIndex]](object o, int nIndex); 
-  * int HasLocalInt(object o, string sName); +  * int [[https://​forum.sinfar.net/​viewtopic.php?​p=91249&​hilit=GetLocalVariableCount#​p91249|HasLocalInt]](object o, string sName); 
-  * int HasLocalString(object o, string sName); +  * int [[https://​forum.sinfar.net/​viewtopic.php?​p=91249&​hilit=GetLocalVariableCount#​p91249|HasLocalString]](object o, string sName); 
-  * int HasLocalFloat(object o, string sName); +  * int [[https://​forum.sinfar.net/​viewtopic.php?​p=91249&​hilit=GetLocalVariableCount#​p91249|HasLocalFloat]](object o, string sName); 
-  * int HasLocalObject(object o, string sName); +  * int [[https://​forum.sinfar.net/​viewtopic.php?​p=91249&​hilit=GetLocalVariableCount#​p91249|HasLocalObject]](object o, string sName); 
-  * int HasLocalLocation(object o, string sName);+  * int [[https://​forum.sinfar.net/​viewtopic.php?​p=91249&​hilit=GetLocalVariableCount#​p91249|HasLocalLocation]](object o, string sName);
   * string GetTilesetInformation(string sResRef, string sSection, string sEntry);   * string GetTilesetInformation(string sResRef, string sSection, string sEntry);
   * int GetQuickButtonType(object oCreature, int nButtonPosition);​   * int GetQuickButtonType(object oCreature, int nButtonPosition);​
Line 373: Line 358:
   * location PC_GetSavedLocation(object oPC);   * location PC_GetSavedLocation(object oPC);
   * void PC_SetSavedLocation(object oPC, location lLocation);   * void PC_SetSavedLocation(object oPC, location lLocation);
-  * int SQLGetInsertId();​ 
-  * int SQLGetLastResultCode();​ 
   * int GetSurface(location lLocation);   * int GetSurface(location lLocation);
   * int GetAnimation(object oTarget);   * int GetAnimation(object oTarget);
Line 380: Line 363:
   * int GetFlatFlooted(object oCreature);   * int GetFlatFlooted(object oCreature);
   * int GetIsPolymorphed(object oCreature);   * int GetIsPolymorphed(object oCreature);
-  * void _SetXPL_DontUse(int i); 
   * int GetEventParamInt(int nParamIndex);​   * int GetEventParamInt(int nParamIndex);​
   * object GetEventParamObject(int nParamIndex);​   * object GetEventParamObject(int nParamIndex);​
Line 410: Line 392:
   * effect RunEventEffect(string sScript, object oTarget, array aParams);   * effect RunEventEffect(string sScript, object oTarget, array aParams);
   * array RunEventArray(string sScript, object oTarget, array aParams);   * array RunEventArray(string sScript, object oTarget, array aParams);
-dictionary RunEventDictionary(string sScript, object oTarget, array aParams);+  * dictionary RunEventDictionary(string sScript, object oTarget, array aParams);
   * vector RunEventVector(string sScript, object oTarget, array aParams);   * vector RunEventVector(string sScript, object oTarget, array aParams);
   * location RunEventLocation(string sScript, object oTarget, array aParams);   * location RunEventLocation(string sScript, object oTarget, array aParams);
Line 442: Line 424:
   * int GetIsClassGeneralFeat(int nClass, int nFeat);   * int GetIsClassGeneralFeat(int nClass, int nFeat);
   * int GetIsClassGrantedFeat(int nClass, int nFeat);   * int GetIsClassGrantedFeat(int nClass, int nFeat);
-int GetIsClassSkill(int nClass, int nSkill); +  * int GetIsClassSkill(int nClass, int nSkill); 
-int GetClassByLevel(object oCreature, int nLevel); +  ​* ​int GetClassByLevel(object oCreature, int nLevel); 
-int GetAbilityIncreaseByLevel(object oCreature, int nLevel); +  ​* ​int GetAbilityIncreaseByLevel(object oCreature, int nLevel); 
-int GetSkillIncreaseByLevel(object oCreature, int nLevel, int nSkill); +  ​* ​int GetSkillIncreaseByLevel(object oCreature, int nLevel, int nSkill); 
-int GetSavingThrowBonus(object oCreature, int nSave); +  ​* ​int GetSavingThrowBonus(object oCreature, int nSave); 
-void SetSavingThrowBonus(object oCreature, int nSave, int nValue); +  ​* ​void SetSavingThrowBonus(object oCreature, int nSave, int nValue); 
-int GetMaxHitPointsByLevel(object oCreature, int nLevel); +  ​* ​int GetMaxHitPointsByLevel(object oCreature, int nLevel); 
-void SetMaxHitPointsByLevel(object oCreature, int nLevel, int nVaule); +  ​* ​void SetMaxHitPointsByLevel(object oCreature, int nLevel, int nVaule); 
-void SetCreatureSize(object oCreature, int nSize); +  ​* ​void SetCreatureSize(object oCreature, int nSize); 
-int GetPCSkillPoints(object oCreature);​ +  ​* ​int GetPCSkillPoints(object oCreature);​ 
-void SetPCSkillPoints(object oCreature, int nValue); +  ​* ​void SetPCSkillPoints(object oCreature, int nValue); 
-int GetBodyBag(object oCreature);​ +  ​* ​int GetBodyBag(object oCreature);​ 
-void SetBodyBag(object oCreature, int nValue); +  ​* ​void SetBodyBag(object oCreature, int nValue); 
-void SetAlignmentGoodEvil(object oCreature, int nValue); +  ​* ​void SetAlignmentGoodEvil(object oCreature, int nValue); 
-void SetAlignmentLawChaos(object oCreature, int nValue); +  ​* ​void SetAlignmentLawChaos(object oCreature, int nValue); 
-void SetCurrentHitPoints(object oObject, int nHP); +  ​* ​void SetCurrentHitPoints(object oObject, int nHP); 
-void SetMaxHitPoints(object oObject, int nHP); +  ​* ​void SetMaxHitPoints(object oObject, int nHP); 
-int GetKnowsSpell(object oCreature, int nSpell, int nClass=CLASS_TYPE_INVALID);​ +  ​* ​int GetKnowsSpell(object oCreature, int nSpell, int nClass=CLASS_TYPE_INVALID);​ 
-int GetKnownSpell(object oCreature, int nClass, int nSpellLevel,​ int nSpellIndex);​ +  ​* ​int GetKnownSpell(object oCreature, int nClass, int nSpellLevel,​ int nSpellIndex);​ 
-void SetKnownSpell(object oCreature, int nClass, int nSpellLevel,​ int nSpellIndex,​ int nSpellId);​ +  ​* ​void SetKnownSpell(object oCreature, int nClass, int nSpellLevel,​ int nSpellIndex,​ int nSpellId);​ 
-int GetNumKnownSpells(object oCreature, int nClass, int nSpellLevel);​ +  ​* ​int GetNumKnownSpells(object oCreature, int nClass, int nSpellLevel);​ 
-void AddKnownSpell(object oCreature, int nClass, int nSpellLevel,​ int nSpellId);​ +  ​* ​void AddKnownSpell(object oCreature, int nClass, int nSpellLevel,​ int nSpellId);​ 
-void RemoveKnownSpell(object oCreature, int nClass, int nSpellLevel,​ int nSpellId);​ +  ​* ​void RemoveKnownSpell(object oCreature, int nClass, int nSpellLevel,​ int nSpellId);​ 
-int GetMemorizedSpellCount(object oCreature, int nClass, int nSpellLevel);​ +  ​* ​int GetMemorizedSpellCount(object oCreature, int nClass, int nSpellLevel);​ 
-int GetMemorizedSpellId(object oCreature, int nClass, int nSpellLevel,​ int nSpellIndex);​ +  ​* ​int GetMemorizedSpellId(object oCreature, int nClass, int nSpellLevel,​ int nSpellIndex);​ 
-int GetMemorizedSpellReady(object oCreature, int nClass, int nSpellLevel,​ int nSpellIndex);​ +  ​* ​int GetMemorizedSpellReady(object oCreature, int nClass, int nSpellLevel,​ int nSpellIndex);​ 
-int GetMemorizedSpellMetaMagic(object oCreature, int nClass, int nSpellLevel,​ int nSpellIndex);​ +  ​* ​int GetMemorizedSpellMetaMagic(object oCreature, int nClass, int nSpellLevel,​ int nSpellIndex);​ 
-int GetMemorizedSpellDomain(object oCreature, int nClass, int nSpellLevel,​ int nSpellIndex);​ +  ​* ​int GetMemorizedSpellDomain(object oCreature, int nClass, int nSpellLevel,​ int nSpellIndex);​ 
-void SetMemorizedSpellId(object oCreature, int nClass, int nSpellLevel,​ int nSpellIndex,​ int nSpellId);​ +  ​* ​void SetMemorizedSpellId(object oCreature, int nClass, int nSpellLevel,​ int nSpellIndex,​ int nSpellId);​ 
-void SetMemorizedSpellReady(object oCreature, int nClass, int nSpellLevel,​ int nSpellIndex,​ int bReady); +  ​* ​void SetMemorizedSpellReady(object oCreature, int nClass, int nSpellLevel,​ int nSpellIndex,​ int bReady); 
-void SetMemorizedSpellMetaMagic(object oCreature, int nClass, int nSpellLevel,​ int nSpellIndex,​ int nMetaMagic);​ +  ​* ​void SetMemorizedSpellMetaMagic(object oCreature, int nClass, int nSpellLevel,​ int nSpellIndex,​ int nMetaMagic);​ 
-void SetMemorizedSpellDomain(object oCreature, int nClass, int nSpellLevel,​ int nSpellIndex,​ int nDomain); +  ​* ​void SetMemorizedSpellDomain(object oCreature, int nClass, int nSpellLevel,​ int nSpellIndex,​ int nDomain); 
-void SetMemorizedSpell(object oCreature, int nClass, int nSpellLevel,​ int nSpellIndex,​ int nSpellId, int bReady, int nMetaMagic, int nDomain); +  ​* ​void SetMemorizedSpell(object oCreature, int nClass, int nSpellLevel,​ int nSpellIndex,​ int nSpellId, int bReady, int nMetaMagic, int nDomain); 
-int GetClericDomain(object oCreature, int nIndex); +  ​* ​int GetClericDomain(object oCreature, int nIndex); 
-void SetClericDomain(object oCreature, int nIndex, int nDomain); +  ​* ​void SetClericDomain(object oCreature, int nIndex, int nDomain); 
-int GetWizardSpecialization(object oCreature);​ +  ​* ​int GetWizardSpecialization(object oCreature);​ 
-void SetWizardSpecialization(object oCreature, int nSchool); +  ​* ​void SetWizardSpecialization(object oCreature, int nSchool); 
-int GetSpecialAbilityCount(object oCreature);​ +  ​* ​int GetSpecialAbilityCount(object oCreature);​ 
-int GetSpecialAbilitySpellId(object oCreature, int nIndex); +  ​* ​int GetSpecialAbilitySpellId(object oCreature, int nIndex); 
-int GetSpecialAbilityFlags(object oCreature, int nIndex); +  ​* ​int GetSpecialAbilityFlags(object oCreature, int nIndex); 
-int GetSpecialAbilityLevel(object oCreature, int nIndex); +  ​* ​int GetSpecialAbilityLevel(object oCreature, int nIndex); 
-void SetSpecialAbilitySpellId(object oCreature, int nIndex, int nSpellId);​ +  ​* ​void SetSpecialAbilitySpellId(object oCreature, int nIndex, int nSpellId);​ 
-void SetSpecialAbilityFlags(object oCreature, int nIndex, int nFlags); +  ​* ​void SetSpecialAbilityFlags(object oCreature, int nIndex, int nFlags); 
-void SetSpecialAbilityLevel(object oCreature, int nIndex, int nLevel); +  ​* ​void SetSpecialAbilityLevel(object oCreature, int nIndex, int nLevel); 
-void RemoveSpecialAbility(object oCreature, int nIndex); +  ​* ​void RemoveSpecialAbility(object oCreature, int nIndex); 
-void AddSpecialAbility(object oCreature, int nSpellId, int nFlags, int nLevel); +  ​* ​void AddSpecialAbility(object oCreature, int nSpellId, int nFlags, int nLevel); 
-string GetPortrait(object oCreature);​ +  ​* ​string GetPortrait(object oCreature);​ 
-void SetPortrait(object oCreature, string sPortraitResRef);​ +  ​* ​void SetPortrait(object oCreature, string sPortraitResRef);​ 
-int GetSoundset(object oCreature);​ +  ​* ​int GetSoundset(object oCreature);​ 
-void SetSoundset(object oCreature, int nSoundset);​ +  ​* ​void SetSoundset(object oCreature, int nSoundset);​ 
-void SetTrapCreator(object oTrap, object oCreator);​ +  ​* ​void SetTrapCreator(object oTrap, object oCreator);​ 
-string GetConversation(object oCreature);​ +  ​* ​string GetConversation(object oCreature);​ 
-void SetConversation(object oCreature, string sConversation);​ +  ​* ​void SetConversation(object oCreature, string sConversation);​ 
-string GetLocalVariableName(object oObject, int nIndex); +  ​* ​string GetLocalVariableName(object oObject, int nIndex); 
-int GetLocalVariableType(object oObject, int nIndex); +  ​* ​int GetLocalVariableType(object oObject, int nIndex); 
-object GetFirstArea();​ +  ​* ​object GetFirstArea();​ 
-object GetNextArea();​ +  ​* ​object GetNextArea();​ 
-void SetBaseItemType(object oItem, int nBaseItem);​ +  ​* ​void SetBaseItemType(object oItem, int nBaseItem);​ 
-void SetGoldPieceValue(object oItem, int nValue); +  ​* ​void SetGoldPieceValue(object oItem, int nValue); 
-void SetItemWeight(object oItem, int nTenthLbs);​ +  ​* ​void SetItemWeight(object oItem, int nTenthLbs);​ 
-void SetPlaceableAppearance(object oPlaceable, int nAppearance);​ +  ​* ​void SetPlaceableAppearance(object oPlaceable, int nAppearance);​ 
-float GetGroundHeight(object oArea, vector vPos); +  ​* ​float GetGroundHeight(object oArea, vector vPos); 
-float GetGroundHeightFromLocation(location lLoc); +  ​* ​float GetGroundHeightFromLocation(location lLoc); 
-int GetIsWalkable(object oArea, vector vPos); +  ​* ​int GetIsWalkable(object oArea, vector vPos); 
-int GetIsWalkableLocation(location lLoc); +  ​* ​int GetIsWalkableLocation(location lLoc); 
-int GetPCPort(object oPC); +  ​* ​int GetPCPort(object oPC); 
-void BootPCWithMessage(object oPC, int nStrRef); +  ​* ​void BootPCWithMessage(object oPC, int nStrRef); 
-string GetPCFileName(object oPC); +  ​* ​string GetPCFileName(object oPC); 
-int GetFactionId(object oObject); +  ​* ​int GetFactionId(object oObject); 
-void SetFactionId(object oObject, int nFaction);​ +  ​* ​void SetFactionId(object oObject, int nFaction);​ 
-void SetLastHostileActor(object oObject, object oActor); +  ​* ​void SetLastHostileActor(object oObject, object oActor); 
-void SetMovementRate(object oCreature, int nRate); +  ​* ​void SetMovementRate(object oCreature, int nRate); 
-void SetRacialType(object oCreature, int nRacialType);​ +  ​* ​void SetRacialType(object oCreature, int nRacialType);​ 
-object IntToObject(int nObjectId);​ +  ​* ​object IntToObject(int nObjectId);​ 
-object StringToObject(string sObjectId);​ +  ​* ​object StringToObject(string sObjectId);​ 
-int GetCriticalHitMultiplier(object oCreature, int bOffhand);​ +  ​* ​int GetCriticalHitMultiplier(object oCreature, int bOffhand);​ 
-int GetCriticalHitRange(object oCreature, int bOffhand);​ +  ​* ​int GetCriticalHitRange(object oCreature, int bOffhand);​ 
-int GetCurrentAnimation(object oCreature);​ +  ​* ​int GetCurrentAnimation(object oCreature);​ 
-void SetCurrentAnimation(object oCreature, int nAnimation);​ +  ​* ​void SetCurrentAnimation(object oCreature, int nAnimation);​ 
-int GetForcedWalk(object oCreature);​ +  ​* ​int GetForcedWalk(object oCreature);​ 
-void SetForcedWalk(object oCreature, int bWalk); +  ​* ​void SetForcedWalk(object oCreature, int bWalk); 
-void SetPlaceableHasInventory(object oPlaceable, int bHasInventory);​ +  ​* ​void SetPlaceableHasInventory(object oPlaceable, int bHasInventory);​ 
-void ReloadERFs();​ +  ​* ​void ReloadERFs();​ 
-void ReloadCached2das();​ +  ​* ​void ReloadCached2das();​ 
-void ReloadAll2das();​ +  ​* ​void ReloadAll2das();​ 
-void PC_SetSavedLocationData(object oPC, string sLocation, int nServerId);​ +  ​* ​void PC_SetSavedLocationData(object oPC, string sLocation, int nServerId);​ 
-string VectorToString(vector v); +  ​* ​string VectorToString(vector v); 
-vector StringToVector(string s); +  ​* ​vector StringToVector(string s); 
-string LocationToString(location l); +  ​* ​string LocationToString(location l); 
-location StringToLocation(string s); +  ​* ​location StringToLocation(string s); 
-string PC_GetSavedLocationString(object oPC); +  ​* ​string PC_GetSavedLocationString(object oPC); 
-int RunVariableEvent(object oObject, string sEvent); +  ​* ​int RunVariableEvent(object oObject, string sEvent); 
-string GetCurrentVariableEvent();​ +  ​* ​string GetCurrentVariableEvent();​ 
-object GetCurrentVariableEventTarget();​ +  ​* ​object GetCurrentVariableEventTarget();​ 
-void BypassVariableEvent();​ +  ​* ​void BypassVariableEvent();​ 
-void UnregisterVariableEvent(object oObject, string sEvent, string sScript); +  ​* ​void UnregisterVariableEvent(object oObject, string sEvent, string sScript); 
-void RegisterVariableEvent(object oObject, string sEvent, string sScript, int bNoByPass=FALSE);​ +  ​* ​void RegisterVariableEvent(object oObject, string sEvent, string sScript, int bNoByPass=FALSE);​ 
-void SendWebClientCommand(int nPlayerId, string sTag, string sParams, int nDuration=30,​ string sReason="​MISC"​);​ +  ​* ​void SendWebClientCommand(int nPlayerId, string sTag, string sParams, int nDuration=30,​ string sReason="​MISC"​);​ 
-int GetPlayerServerRoles(object oPlayer); +  ​* ​int GetPlayerServerRoles(object oPlayer); 
-int PC_GetPlayerOptions(object oPC); +  ​* ​int PC_GetPlayerOptions(object oPC); 
-int PC_GetPlayerOption(object oPC, int nOption); +  ​* ​int PC_GetPlayerOption(object oPC, int nOption); 
-void PC_SetPlayerOption(object oPC, int nOption, int bOn); +  ​* ​void PC_SetPlayerOption(object oPC, int nOption, int bOn); 
-string GetPlayerOptionString(object oPC, string sGroup, string sName); +  ​* ​string GetPlayerOptionString(object oPC, string sGroup, string sName); 
-void SetPlayerOptionString(object oPC, string sGroup, string sName, string sValue); +  ​* ​void SetPlayerOptionString(object oPC, string sGroup, string sName, string sValue); 
-int GetPersistentAreaId(object oArea); +  ​* ​int GetPersistentAreaId(object oArea); 
-string GetDatabaseName();​ +  ​* ​int GetCurrentScriptInCore();​ 
-dbresult SQLCoreExec(string sSQL); +  ​* ​int GetCurrentScriptPublic();​ 
-int SQLCoreAffectedRows();​ +  ​* ​int GetCurrentScriptErfId();​ 
-void SQLCoreGetInsertId();​ +  ​* ​int GetCurrentScriptServers();​ 
-int GetCurrentScriptInCore();​ +  ​* ​int CRC32(string sValue); 
-int GetCurrentScriptPublic();​ +  ​* ​string SHA256(string sValue); 
-int GetCurrentScriptErfId();​ +  ​* ​int HexToInt(string sHex); 
-int GetCurrentScriptServers();​ +  * tring ByteToHex(int nInt); 
-int CRC32(string sValue); +  ​* ​string WordToHex(int nInt); 
-string SHA256(string sValue); +  ​* ​string IntToHex(int nInt); 
-string GetCorePCPublicCDKey(object oPC); +  ​* ​int GetPlayerGameVersion(object oPlayer); 
-int HexToInt(string sHex); +  ​* ​int GetPlayerGameLanguage(object oPlayer); 
-string ​ByteToHex(int nInt); +  ​* ​int GetPlayerExpansionPack(object oPlayer); 
-string WordToHex(int nInt); +  ​* ​void HttpRequest(string sUrl, string sCallbackScript,​ array aCallbackParams,​ string sMethod="​GET",​ string sBody=""​);​ 
-string IntToHex(int nInt); +  ​* ​void LogDebug(string sLogMessasge,​ string sPrefix=""​);​ 
-int GetPlayerGameVersion(object oPlayer); +  ​* ​void LogWarning(string sLogMessasge,​ string sPrefix=""​);​ 
-int GetPlayerGameLanguage(object oPlayer); +  ​* ​void LogError(string sLogMessasge,​ string sPrefix=""​);​ 
-int GetPlayerExpansionPack(object oPlayer); +  ​* ​int HomeIdFromObject(object oObject); 
-void HttpRequest(string sUrl, string sCallbackScript,​ array aCallbackParams,​ string sMethod="​GET",​ string sBody=""​);​ +  ​* ​int IsPlayerScriptObject(object oObject); 
-void LogDebug(string sLogMessasge,​ string sPrefix=""​);​ +  ​* ​int HouseScriptHomeId();​ 
-void LogWarning(string sLogMessasge,​ string sPrefix=""​);​ +  ​* ​void RemovePlayerHouseEffects(object oObject); 
-void LogError(string sLogMessasge,​ string sPrefix=""​);​ +  ​* ​string GetResRefPrefix(string sResRef); 
-int HomeIdFromObject(object oObject); +  ​* ​string GetResRefErfPrefix(string sResRef); 
-int IsPlayerScriptObject(object oObject); +  ​* ​int GetResRefErfId(string sResRef); 
-int HouseScriptHomeId();​ +  ​* ​int GetResRefErfServers(string sResRef); 
-void RemovePlayerHouseEffects(object oObject); +  ​* ​void PrintToStdErr(string sPrint); 
-array CORE_GetPlayerDefaultCDKeys(string sPlayerName);​ +  ​* ​void PrintToStdOut(string sPrint); 
-string GetResRefPrefix(string sResRef); +  ​* ​int IsOnSinfarWorld();​ 
-string GetResRefErfPrefix(string sResRef); +  ​* ​void PrepareToDestroy(object oObject); 
-int GetResRefErfId(string sResRef); +  ​* ​int GetScriptExecuteStackPointer();​ 
-int GetResRefErfServers(string sResRef); +  ​* ​string GetScriptNameByExecuteIndex(int nExecuteIndex);​ 
-void PrintToStdErr(string sPrint); +  ​* ​int GetActionGroupId(object oObject, int nAction); 
-void PrintToStdOut(string sPrint); +  ​* ​int GetActionParamCount(object oObject, int nAction); 
-int IsOnSinfarWorld();​ +  ​* ​int GetActionParamType(object oObject, int nAction, int nParam); 
-void PrepareToDestroy(object oObject); +  ​* ​int GetActionParamInt(object oObject, int nAction, int nParam); 
-int GetScriptExecuteStackPointer();​ +  ​* ​float GetActionParamFloat(object oObject, int nAction, int nParam); 
-string GetScriptNameByExecuteIndex(int nExecuteIndex);​ +  ​* ​object GetActionParamObject(object oObject, int nAction, int nParam); 
-int GetActionGroupId(object oObject, int nAction); +  ​* ​string GetActionParamString(object oObject, int nAction, int nParam); 
-int GetActionParamCount(object oObject, int nAction); +  ​* ​location GetActionParamLocation(object oObject, int nAction, int nParam); 
-int GetActionParamType(object oObject, int nAction, int nParam); +  ​* ​int GetActionInterruptable(object oObject, int nAction); 
-int GetActionParamInt(object oObject, int nAction, int nParam); +  ​* ​void AddAction(object oObject, int nActionType,​ array aParams, int nActionGroupId=-1);​ 
-float GetActionParamFloat(object oObject, int nAction, int nParam); +  ​* ​void AddActionToFront(object oObject, int nActionType,​ array aParams, int nActionGroupId=-1);​ 
-object GetActionParamObject(object oObject, int nAction, int nParam); +  ​* ​void AddActionAfterFront(object oObject, int nActionType,​ array aParams, int nActionGroupId=-1);​ 
-string GetActionParamString(object oObject, int nAction, int nParam); +  ​* ​void ActionDoCommandToBack(action aActionToDo,​ int nActionGroupId=-1);​ 
-location GetActionParamLocation(object oObject, int nAction, int nParam); +  ​* ​void ActionDoCommandToFront(action aActionToDo,​ int nActionGroupId=-1);​ 
-int GetActionInterruptable(object oObject, int nAction); +  ​* ​void ActionDoCommandAfterFront(action aActionToDo,​ int nActionGroupId=-1);​ 
-void AddAction(object oObject, int nActionType,​ array aParams, int nActionGroupId=-1);​ +  ​* ​int GetCurrentActionType(object oObject); 
-void AddActionToFront(object oObject, int nActionType,​ array aParams, int nActionGroupId=-1);​ +  ​* ​int GetCurrentActionGroupId(object oObject); 
-void AddActionAfterFront(object oObject, int nActionType,​ array aParams, int nActionGroupId=-1);​ +  ​* ​int GetCurrentActionParamCount(object oObject); 
-void ActionDoCommandToBack(action aActionToDo,​ int nActionGroupId=-1);​ +  ​* ​int GetCurrentActionParamType(object oObject, int nParam); 
-void ActionDoCommandToFront(action aActionToDo,​ int nActionGroupId=-1);​ +  ​* ​int GetCurrentActionParamInt(object oObject, int nParam); 
-void ActionDoCommandAfterFront(action aActionToDo,​ int nActionGroupId=-1);​ +  ​* ​float GetCurrentActionParamFloat(object oObject, int nParam); 
-int GetCurrentActionType(object oObject); +  ​* ​object GetCurrentActionParamObject(object oObject, int nParam); 
-int GetCurrentActionGroupId(object oObject); +  ​* ​string GetCurrentActionParamString(object oObject, int nParam); 
-int GetCurrentActionParamCount(object oObject); +  ​* ​location GetCurrentActionParamLocation(object oObject, int nParam); 
-int GetCurrentActionParamType(object oObject, int nParam); +  ​* ​int IsValidPlayerScriptObject(object oObject); 
-int GetCurrentActionParamInt(object oObject, int nParam); +  ​* ​void RemovePlayerHouseVariables(object oObject); 
-float GetCurrentActionParamFloat(object oObject, int nParam); +  ​* ​int StartsWith(string sString, string sPrefix); 
-object GetCurrentActionParamObject(object oObject, int nParam); +  ​* ​int RunVariableEventWithParams(object oObject, string sEvent, array aParams); 
-string GetCurrentActionParamString(object oObject, int nParam); +  ​* ​array GetCurrentVariableEventParams();​ 
-location GetCurrentActionParamLocation(object oObject, int nParam); +  ​* ​int GetRemainingSpellSlots(object oCreature, int nClass, int nSpellLevel);​ 
-int IsValidPlayerScriptObject(object oObject); +  ​* ​void SetRemainingSpellSlots(object oCreature, int nClass, int nSpellLevel,​ int nSlots); 
-void RemovePlayerHouseVariables(object oObject); +  ​* ​int GetSpellGainWithBonus(object oCreature, int nClass, int nSpellLevel);​ 
-int StartsWith(string sString, string sPrefix); +  ​* ​void JournalAddQuest(object oPlayer, string sPlotId, string sTitle, string sText, int nState, int nPriority, ​  * int bCompleted, int nCalendarDay,​ int nTimeOfDay);​ 
-int RunVariableEventWithParams(object oObject, string sEvent, array aParams); +  ​* ​void NotifyJournalUpdated(object oPlayer, string sMesssage, int bIsQuest=TRUE,​ int bIsCompleted=FALSE);​ 
-array GetCurrentVariableEventParams();​ +  ​* ​void JournalRemoveQuest(object oPlayer, string sPlotId); 
-int GetRemainingSpellSlots(object oCreature, int nClass, int nSpellLevel);​ +  ​* ​void __Spacer619__(string sPlayerName);​ 
-void SetRemainingSpellSlots(object oCreature, int nClass, int nSpellLevel,​ int nSlots); +  ​* ​array GetWorldTime();​ 
-int GetSpellGainWithBonus(object oCreature, int nClass, int nSpellLevel);​ +  ​* ​int IsProxyPlayer(object oPlayer); 
-void JournalAddQuest(object oPlayer, string sPlotId, string sTitle, string sText, int nState, int nPriority, int bCompleted, int nCalendarDay,​ int nTimeOfDay);​ +  ​* ​int IsUsingNWSync(object oPlayer); 
-void NotifyJournalUpdated(object oPlayer, string sMesssage, int bIsQuest=TRUE,​ int bIsCompleted=FALSE);​ +  ​* ​string GetRemoteServerIP(object oPlayer); 
-void JournalRemoveQuest(object oPlayer, string sPlotId); +  ​* ​int GetRemoteServerPort(object oPlayer); 
-void __Spacer619__(string sPlayerName);​ +  ​* ​void SetClassByLevel(object oPC, int nLevel, int nClass); 
-array GetWorldTime();​ +  ​* ​void SetClassByPosition(object oCreature, int nPosition, int nClass);
-int IsProxyPlayer(object oPlayer); +
-int IsUsingNWSync(object oPlayer); +
-string GetRemoteServerIP(object oPlayer); +
-int GetRemoteServerPort(object oPlayer); +
-void SetClassByLevel(object oPC, int nLevel, int nClass); +
-void SetClassByPosition(object oCreature, int nPosition, int nClass);+
building/scripts/x_sfscript.1711281693.txt.gz · Last modified: 2024/03/24 12:01 by EternalSenenity

phpBB Appliance - Powered by TurnKey Linux