Jump to content

JoyRo

Members
  • Content Count

    120
  • Joined

  • Last visited

Posts posted by JoyRo


  1. Hello,

     

    i have a script that shows you how many players are online at a certain map.
    But i am getting a script_rid2sd fatal error player not attached.

    Can any 1 help me.

    Also when i click the npc it warps me to the area.

    //========= Event Area========
    prontera,167,169,3	script	Event Area	2_BULLETIN_BOARD,{
    	OnInit:	
    	OnTimer1000:
    	delwaitingroom;
    	waitingroom getmapusers("prontera")+" player"+( getmapusers("prontera") > 1 ? "s":"") +" in Event Area", 0;
    OnTouch:
            warp "prontera",99,121;
            end;
    }
    

     


  2. My npc's are using the spell meteor storm but the mobs are not teleported away.

    Any idea why?

    OnTouchNPC:
    	if (getd(".def" + strnpcinfo(2)))
    		end;
    	setd ".def" + strnpcinfo(2), 1;
    	specialeffect EF_BEGINSPELL;
    	setarray .@message$,
    "Dont you dare!",
    "No chance!";
    	if (countstr(strnpcinfo(2), "fbM"))
    .@message$[2] = "You is an enemy?";
    showscript .@message$[rand(3)], getnpcid(0);
    sleep 2000;
    specialeffect EF_METEORSTORM;
    sleep 1500;
    unitwarp 0, "this", -1, -1;
    setd ".def" + strnpcinfo(2), 0;
    end;
    
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.