Jump to content

  •  

Slowpoker

Member Since 11 Sep 2013
Offline Last Active Dec 17 2016 08:24 PM
-----

Posts I've Made

In Topic: Problem with waiting room!

06 November 2013 - 12:40 PM

prontera,155,182,2	script	onoi	75,{end;OnInit:	waitingroom "Party - Waiting Room",20,strnpcinfo(3)+"::OnStart",1;	end;OnTimer2000:OnStart:	if ( getmapusers( "new_1-2" ) == 0 ) {		warpwaitingpc "new_1-2",0,0,1;		if ( $@warpwaitingpcnum )			announce  "The player "+ rid2name( $@warpwaitingpc[0] ) +" was teleported to the event room!",bc_blue|bc_all;		if ( getwaitingroomstate(0) == 0 ) {			stopnpctimer;			end;		}	}	initnpctimer;	end;}

 

[color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;]Many thanks to all who tried to help me, I'm very grateful for that.[/color]


In Topic: Problem with waiting room!

04 November 2013 - 08:18 PM

add this at the bottom part

 

prontera    mapflag    loadevent

 

this might not be a good idea. cause everytime you warp to prontera and new_1-2 is empty

it'll always announce "new_1-2 is empty, please go into map the next".
 

 

These maps are random maps quesoph, i'm using their just to test this script.

 

quesoph is almost working fine, but there is a little problem yet. The problem is that the message just show if a player go into prontera and new_1-2 is empty( OK ! GOOD !), but if the player already is in prontera when new_1-2 becomes empty the message doesn't show.


In Topic: Problem with waiting room!

04 November 2013 - 04:00 PM

try

 

 

jazeera,152,111,6    script    John    81,{OnInit:    waitingroom "Waiting Room",5,strnpcinfo(3)+"::OnStart",1;    end;    OnStart:    if( getmapusers( "new_1-2" ) > 0) {        attachrid $@warpwaitingpc;        announce strcharinfo(0)+" is in the event room!",bc_blue|bc_all;        end;    }    warpwaitingpc "new_1-2",98,17,1;    attachrid $@warpwaitingpc;    announce  strcharinfo(0)+" was teleported to the event room!",bc_blue|bc_all;    end;    OnPcLoadMapEvent:    if( getmapusers( "new_1-2" ) == 0) {        announce "new_1-2 is empty, please go into map the next",0;        //donpcevent strnpcinfo(3)+"::OnStart";    }    end;}new_1-2    mapflag    loadevent

 

 

The message doesn't show yet in prontera when the player goes out from new_1-2. I don't know why it is so hard, i'm not getting advance it.


In Topic: guild checker

04 November 2013 - 02:57 AM

try it :

 

if ((BaseLevel == 160) && (getcharid(2) == 1))

In Topic: Problem with waiting room!

03 November 2013 - 07:49 PM

try?

Spoiler

 

 

 

Quesoph, your code doesn't work fine, but i make another here and i need to add just a part in it to it works fine. I wanna add a code in it that when one player go out from new_1-2, the npc send a message to prontera like " new_1-2 is empty, please go into map the next ".

 

my code :

 

prontera,151,182,6	script	John	81,{end;OnInit:    waitingroom "Waiting Room",5,strnpcinfo(3)+"::OnStart",1;    end;	OnStart:	if( getmapusers( "new_1-2" ) > 0) {	attachrid $@warpwaitingpc;	announce	"The player "+strcharinfo(0)+" is in the event room!",bc_blue|bc_all;    end;	}	    warpwaitingpc "new_1-2",98,17,1;    attachrid $@warpwaitingpc;    announce  "The player "+strcharinfo(0)+" was teleported to the event room!",bc_blue|bc_all;    end;	}

So, i just need to add something that do it sends a message when a player goes out from new_1-2 . I tried here, but no advance.