Jump to content
  • 0

WAITING ROOM ?


PewN

Question


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

i set it but the guild name on waiting room doesn't showing :(

can anyone help me here about it

then i want the name of the guild will set on pub

set .guild$, strcharinfo(2);

guild_war,113,152,4 script Sign Board 852,{
end;

OnInit:
waitingroom " [ "+.guild$+" ]",0;
end;
}

why the name of the guild not showing on pub here?

bump!

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  185
  • Reputation:   26
  • Joined:  12/07/11
  • Last Seen:  

is this all the code?

guild_war,113,152,4 script Sign Board 852,{
end;

OnInit:
waitingroom " [ "+.guild$+" ]",0;
end;
}

.guild$ is empty.

and take note the variable type you've use is an NPC variable.it can be use on that npc only.unless you'll use getvariableofnpc

They exist in the NPC and disappear when the server restarts or the
NPC is reloaded. Can be accessed from inside the NPC or by calling

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  07/16/12
  • Last Seen:  

If variables with prefix "." are different NPCs, you have to call by getvariableofnpc(<variable>,"<npc name>").

.

Edited by Intense
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  


guild_war,117,154,5 script Machine 100,{
L_main:
if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;
if ( carac == 1 ) goto L_cant;
set .@fcast,15;
progressbar "ffff00",.@fcast;
set carac,1;
set .guild$, strcharinfo(2); // i set it here!
mes "This Map is your own now";
maprespawnguildid "guild_war",getcharid(2),2;
close;

L_cant:
mes "You Already have this";
close;

L_c2:
mes "Other Player Configuring it";
close;

L_not_gm:
mes "Only Gms";
close;

OnPCLoadMapEvent:
if( strcharinfo(3) == "Phantasia" ){
set carac,0;
end;

}
}

guild_war,113,152,4 script Sign Board 852,{
end;

OnInit:
waitingroom " [ "+.guild$+" ]",0;
end;
}

Phantasia mapflag loadevent

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

since you dont know how to use the getvariableofnpc...

you can just simply use a temporary global variable..

$@guild$

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

hsuwxz.jpg


guild_war,117,154,5 script Machine 100,{
L_main:
if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;
if ( carac == 1 ) goto L_cant;
set .@fcast,15;
progressbar "ffff00",.@fcast;
set carac,1;
set $@guild$, strcharinfo(2);
mes "This Map is your own now";
maprespawnguildid "guild_war",getcharid(2),2;
close;

L_cant:
mes "You Already have this";
close;

L_c2:
mes "Other Player Configuring it";
close;

L_not_gm:
mes "Only Gms";
close;

OnPCLoadMapEvent:
if( strcharinfo(3) == "Phantasia" ){
set carac,0;
end;

}
}

guild_war,113,152,4 script Sign Board 852,{
end;

OnInit:
waitingroom " [ "+$@guild$+" ]",0;
end;
}

Edited by bVersatile
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

OnInit:
while(1)
{
waitingroom " [ "+(($@guild$)?$@guild$:"No Guild")+" ]",0;
sleep 1000;
delwaitingroom;
}

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

use this at 1st npc

set $@guild$, strcharinfo(2);
mes "This Map is your own now";
maprespawnguildid "guild_war",getcharid(2),2;
close2;
donpcevent "SECONDNPCNAME::OnInit";
end;

use this in the second npc...

OnInit:
delwaitingroom;
waitingroom "[ "+$@guild$+" ]",0;
end;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...