Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Action? (https://forums.graalonline.com/forums/showthread.php?t=35471)

Graal518 08-09-2002 04:15 PM

Action?
 
What's the action when a player first logs onto the server?

nyghtGT 08-09-2002 08:36 PM

Re: Re: Action?
 
Quote:

Originally posted by Kaimetsu


actionplayeronline, only triggered on the control NPC

So like in a database NPC I could do something like.
NPC Code:

if (actionplayeronline) {
with (getplayer()) {
showimg stuff...;
}
}


CheeToS2 08-09-2002 08:45 PM

Re: Re: Re: Action?
 
Quote:

Originally posted by nyghtGT

So like in a database NPC I could do something like.
NPC Code:

if (actionplayeronline) {
with (getplayer()) {
showimg stuff...;
}
}


Only the Control-NPC, not just any database npc.

Spectre1337 08-11-2002 12:48 PM

NPC Code:

if (actionplayeronline){
say2 Welcome Bak;
}



And that would work if I were to put it on a playerworld with a NPC Server?

Torankusu 08-11-2002 01:34 PM

if (actionplayeronline)

can only be/work in the Control-NPC

Graal518 08-11-2002 02:07 PM

So is #p(0) the account name?

nyghtGT 08-11-2002 02:41 PM

Re: Re: Re: Re: Action?
 
Quote:

Originally posted by Kaimetsu


serverside showimg? getplayer without a parameter? What the heck are you doing?

I was being very generalized...

nyghtGT 08-11-2002 02:42 PM

Quote:

Originally posted by Graal518
So is #p(0) the account name?
#p(0) is the first parameter you set...

Graal518 08-11-2002 03:23 PM

Quote:

Originally posted by nyghtGT

#p(0) is the first parameter you set...

I meant for actionplayeronline.
How can it tell who the player is that logged on?

screen_name 08-11-2002 03:47 PM

NPC Code:

if (actionplayeronline) {
say2 #a;
}



All times are GMT +2. The time now is 02:14 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.