153 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Creature_GetMemorisedSpellCountByLevel");
154 return GetMemorizedSpellCountByLevel(creature,
class, level);
159 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Creature_GetMemorisedSpell");
161 spell.
domain = GetMemorizedSpellIsDomainSpell(creature,
class, level, index);
162 spell.
meta = GetMemorizedSpellMetaMagic(creature,
class, level, index);
163 spell.
ready = GetMemorizedSpellReady(creature,
class, level, index);
164 spell.
id = GetMemorizedSpellId(creature,
class, level, index);
170 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Creature_SetMemorisedSpell");
171 SetMemorizedSpell(creature,
class, level, index, spell.
id, spell.
ready, spell.
meta, spell.
domain);
176 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Creature_GetKnownSpellCount");
177 return GetKnownSpellCount(creature,
class, level);
182 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Creature_GetKnownSpell");
183 return GetKnownSpellId(creature,
class, level, index);
188 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Creature_ClearMemorisedKnownSpells");
189 ClearMemorizedSpellBySpellId(creature,
class, spellId);
194 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Creature_ClearMemorisedSpell");
195 ClearMemorizedSpell(creature,
class, level, index);
200 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Creature_GetSoundset");
201 return GetSoundset(creature);
206 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Creature_SetSoundset");
207 SetSoundset(creature, soundset);
212 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Creature_SetGender");
213 SetGender(creature, gender);
218 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Creature_RestoreSpells");
222 for (i = 0; i < 10; i++)
224 ReadySpellLevel(creature, i);
228 ReadySpellLevel(creature, level);
234 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Creature_GetDomain");
235 return GetDomain(creature, index,
class);
240 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Creature_GetSpecialization");
241 return GetSpecialization(creature,
class);
246 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Creature_GetSpellUsesLeft");
247 return GetSpellUsesLeft(oCreature, GetClassByPosition(nMultiClass + 1), nSpellID, nMetaMagic, nDomainLevel);
252 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Creature_GetMemorizedSpellReadyCount");
253 return GetSpellUsesLeft(oCreature, GetClassByPosition(nMultiClass + 1), nSpellID, nMetaMagic);
258 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Creature_SetEffectIconFlashing");
259 SetEffectIconFlashing(oCreature, nIconId, bFlashing);
290 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Effect_SetEffectExpiredScript");
291 return EffectLinkEffects(EffectRunScript(
"", script,
"", 0.0f, data), e);
296 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Effect_GetEffectExpiredData");
297 return GetEffectString(GetLastRunScriptEffect(), 0);
302 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Effect_GetEffectExpiredCreator");
303 return GetEffectCreator(GetLastRunScriptEffect());
308 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Effect_AccessorizeVisualEffect");
309 if (GetEffectType(eEffect) == EFFECT_TYPE_VISUALEFFECT)
310 return UnyieldingEffect(eEffect);
353 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Object_StringToObject");
354 return StringToObject(
id);
359 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Object_CheckFit");
360 return GetBaseItemFitsInInventory(baseitem, obj);
365 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Object_AddIconEffect");
366 effect eEffect = GetFirstEffect(obj);
367 while (GetIsEffectValid(eEffect))
369 if (GetEffectTag(eEffect) ==
"NWNX_Object_IconEffect" && GetEffectInteger(eEffect, 0) == nIcon)
370 RemoveEffect(obj, eEffect);
371 eEffect = GetNextEffect(obj);
374 effect eIcon = TagEffect(SupernaturalEffect(EffectIcon(nIcon)),
"NWNX_Object_IconEffect");
375 ApplyEffectToObject(fDuration == 0.0 ? DURATION_TYPE_PERMANENT : DURATION_TYPE_TEMPORARY, eIcon, obj, fDuration);
380 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Object_RemoveIconEffect");
381 effect eEffect = GetFirstEffect(obj);
382 while (GetIsEffectValid(eEffect))
384 if (GetEffectTag(eEffect) ==
"NWNX_Object_IconEffect" && GetEffectInteger(eEffect, 0) == nIcon)
385 RemoveEffect(obj, eEffect);
386 eEffect = GetNextEffect(obj);
392 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Object_SetFacing");
393 AssignCommand(oObject, SetFacing(fDirection));
409 string NWNX_Regex_Replace(
string str,
string regex,
string replace =
"",
int firstOnly = FALSE);
419 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Regex_Search");
420 return JsonGetLength(RegExpMatch(regex, str));
425 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Regex_Replace");
426 return RegExpReplace(regex, str, replace, firstOnly ? REGEXP_FORMAT_FIRST_ONLY : REGEXP_FORMAT_DEFAULT);
431 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Regex_Match");
432 return RegExpIterate(regex, str);
462 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Util_IsValidResRef");
463 return ResManGetAliasFor(resref, type) !=
"";
468 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Util_Get2DARowCount");
469 return Get2DARowCount(str);
474 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Util_GetNSSContents");
475 string s = ResManGetFileContents(sScriptName, RESTYPE_NSS);
476 return nMaxLength == -1 ? s : GetStringLeft(s, nMaxLength);
481 WriteTimestampedLogEntry(
"WARNING: Calling deprecated NWNX Function: NWNX_Util_GetServerTicksPerSecond");
482 return GetTickRate();