generated from Jaysyn/ModuleTemplate
Initial upload
Initial upload
This commit is contained in:
16
_mod/_module/nss/upg_und_cauldron.nss
Normal file
16
_mod/_module/nss/upg_und_cauldron.nss
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "rtsh_multiplay"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC=GetPCSpeaker();
|
||||
int nParm=GetLocalInt(oPC,"nParm");
|
||||
string sRes="it_pot_soul";
|
||||
int nCost=10;
|
||||
if (nParm==1) { sRes="it_pot_zomb"; nCost=25; }
|
||||
else if (nParm==2) { sRes="it_pot_und"; nCost=30; }
|
||||
object oItem=CreateItemOnObject(sRes,oPC);
|
||||
int nMana=fnGetTeamMana(oPC);
|
||||
SetIdentified(oItem,TRUE);
|
||||
nMana=nMana-nCost;
|
||||
fnSetTeamMana(oPC,nMana);
|
||||
}
|
||||
Reference in New Issue
Block a user