- Code:
for (i = 0; i < passedeffects.tokenize(",").size(); i ++)
{
temp.effect = passedeffects.tokenize(",")[i].tokenize(":");
temp.effectroll = random(0,100);
if(effectroll <= effect[0] && effect[1] == "cause")
{
BuffSystem.addbuff(effect[2],effect[3],effect[4],effect[5],effect[6]);
}
}
Grab for classic or gold hat.
[/code]
//#CLIENTSIDE
function onCreated()
{
this.chat = "Grab Me!";
}
function onActionGrab()
{
if (player.upgradestatus == "Classic")
{
player.attr[1] == "hat2.png";
}
if (player.upgradestatus == "Gold")
{
player.attr[1] == "hat13.png";
}
if (player.upgradestatus != "Gold" && player.upgradestatus == "Classic")
{
player.chat == "HAHA YOUR A NAME U STUPID TRIAL!";
}
}
[/code]
Thats all im going to do for now. Ill wait untill this gets harder...c