HoS_PRC8/_mod/_module/nss/upg_und_cauldron.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

17 lines
447 B
Plaintext

#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);
}