Initial commit
Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
25
_module/nss/chd_altar_used.nss
Normal file
25
_module/nss/chd_altar_used.nss
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
** CHD 0.0.1
|
||||
** Author: Krisztian PIFKO <monsta@monsta.hu>
|
||||
** License: GPL
|
||||
** Last modified: 2004-12-04
|
||||
**
|
||||
** chd_altar_used.nss: shows the PC's current deity
|
||||
**
|
||||
** invoked from an item's on use event
|
||||
*/
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC=GetLastUsedBy();
|
||||
|
||||
if (GetIsPC(oPC)){
|
||||
string sDeity=GetDeity(oPC);
|
||||
|
||||
if (sDeity!=""){
|
||||
FloatingTextStringOnCreature("Your deity is "+sDeity+".",oPC,FALSE);
|
||||
}else{
|
||||
FloatingTextStringOnCreature("Your have no deity.",oPC,FALSE);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user