Graal Forums

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

GoZelda 07-18-2003 03:22 PM

Serverside Commands?
 
Anyone can tell me the serverside commands? Because i don't know any, really. Except join, addweapon and removeweapon from downloaded Bomy Moons and stuff. So i would really appreciated, and i'm sure others also would do, if people can post all their tiny bits about serverside scripting. Thanks already.

Neoreno 07-18-2003 03:47 PM

Off the top of my head.

setlevel2
freezeplayer2
unfreezeplayer
sendtorc
sendtonc
savelog2
sendpm
addguildmember
removeguildmember
removeguild
warpto

I could be mistaken on one or two.

CheeToS2 07-18-2003 08:34 PM

downloaded bomy moons?

Tseng 07-18-2003 08:39 PM

Re: Serverside Commands?
 
Quote:

Originally posted by GoZelda
Anyone can tell me the serverside commands? Because i don't know any, really. Except join, addweapon and removeweapon from downloaded Bomy Moons and stuff. So i would really appreciated, and i'm sure others also would do, if people can post all their tiny bits about serverside scripting. Thanks already.
As long as you are using that "downloaded Bomy Moons" for learning + not for using, you're good. Otherwise, you're not.

Python523 07-18-2003 09:14 PM

why do people admit they have illegal level/script leaks? =/

azuretek23 07-18-2003 09:40 PM

Quote:

Originally posted by Python523
why do people admit they have illegal level/script leaks? =/
maybe because technically it isn't illegal unless you are using them, I'm sure many people learn by looking at other scripts that they find (also maybe they dont know they are illegal)

GoZelda 07-19-2003 12:23 AM

setlevel2 isn't serverside.

Also, i forgot to mention a description of how they work would be nice XD

I never used Bomy Moon stuff on a PW project or such. I didn't even played it because that's useless because it's almost all serverside there. But i didn't knew it was illegal, stupid me.

Python523 07-19-2003 12:30 AM

Quote:

Originally posted by GoZelda
setlevel2 isn't serverside.
*slaps*

CheeToS2 07-19-2003 12:30 AM

Quote:

Originally posted by GoZelda
setlevel2 isn't serverside.
it is if you have an npcserver.. which most if not all PWs do now

osrs 07-19-2003 12:45 AM

Quote:

Originally posted by GoZelda
setlevel2 isn't serverside.

Try to run it client-side. -_-

GoZelda 07-19-2003 12:52 AM

It works better for me then setlevel

*punches Jagen in the private parts*

Tseng 07-19-2003 01:39 AM

Quote:

Originally posted by GoZelda
It works better for me then setlevel

*punches Jagen in the private parts*

setlevel2 is serverside.
setlevel is depricated.

*stabs in the heart with a wooden stake*

osrs 07-19-2003 02:25 AM

GoZelda,why do you make tutorials if you don't know simple things like these?

Quote:

Originally posted by Tseng


setlevel2 is serverside.
setlevel is depricated.

*stabs in the heart with a wooden stake*

*stabs in the head with a wooden stake* :D

Tseng 07-19-2003 02:30 AM

Quote:

Originally posted by osrs
GoZelda,why do you make tutorials if you don't know simple things like these?



*stabs in the head with a wooden stake* :D

What if he was a vampire though? A stake to the head wouldn't kill him. :(

osrs 07-19-2003 02:46 AM

Quote:

Originally posted by Tseng


What if he was a vampire though? A stake to the head wouldn't kill him. :(

He said setlevel2 wasn't serverside.
He deserves a stake in the head to think better.. :D

Note: I'm joking GoZelda ;)

GoZelda 07-19-2003 11:25 AM

Nuu, you can't touch me! Else i'll suck up all your blood, fools!
*Turns into bat and flies away*

*When you dudes feel safe i come into your houses and drain you, bwahaha*

But setlevel2 is client aswell serverside? Or is setlevel2 serverside warp all players and setlevel2 clientside warp particular player to particular spot?

Thought 07-19-2003 11:39 AM

I do believe setlevel2 existed before the advent of the NPC-Server.

Python523 07-19-2003 11:53 AM

He doesn't get what we are saying:

1.) We dont CARE about non npc server places

2.) We dont CARE that the command was made before serverside existed

3.) We CARE that right now all the servers excluding classic use an npc server and that with an npcserver setlevel2 ONLY works serverside

GoZelda 07-19-2003 12:04 PM

3.)HOW does it work serverside?
3.)Graal The Adventure WILL get one

Tseng 07-19-2003 12:13 PM

Quote:

Originally posted by GoZelda
3.)HOW does it work serverside?
3.)Graal The Adventure WILL get one

It works serverside how any other serverside command works serverside.

*sigh*

GoZelda 07-19-2003 12:14 PM

No you don't understand me. Does it warps every player or only one???

Tseng 07-19-2003 12:19 PM

Quote:

Originally posted by GoZelda
No you don't understand me. Does it warps every player or only one???
It warps the current player. ;-;

GoZelda 07-19-2003 01:04 PM

Funny. And i can't use it clientside or something? Very weird. Anyway, as i already stated, can i get explaination for the other commands aswell?

Neoreno 07-19-2003 01:19 PM

setlevel2 level,x,y -- warps the current player.

freezeplayer2 -- freezes the current player indefinatly.

unfreezeplayer -- unfreezes the player from freezeplayer2.

sendtorc message -- Sends a message to RC through the NPCServer

sendtonc message -- Sends a message to NC

savelog2 log.txt,message -- Saves a log in the logs/ folder.

sendpm message -- Sends a PM through the NPCServer to someone.

addguildmember guild,account,nick -- Adds a player to a guild.

removeguildmember guild,account --Removes a player from a guild.

removeguild guild --Deletes a guild

warpto level,x,y --Warps a database NPC

Tseng 07-19-2003 01:43 PM

Quote:

Originally posted by GoZelda
Funny. And i can't use it clientside or something? Very weird. Anyway, as i already stated, can i get explaination for the other commands aswell?
It would be rather stupid if you could do that clientside x.x;;;

Think about it.

The client.

Having the power.

To warp someone to any level, x, y, without a server verification.

protagonist 07-19-2003 02:31 PM

Quote:

Originally posted by Tseng


It would be rather stupid if you could do that clientside x.x;;;

Think about it.

The client.

Having the power.

To warp someone to any level, x, y, without a server verification.

It goes against all logical laws! Blasphemy!

Falados 07-19-2003 04:44 PM

Quote:

Originally posted by GoZelda
Nuu, you can't touch me! Else i'll suck up all your blood, fools!
*Turns into bat and flies away*

*When you dudes feel safe i come into your houses and drain you, bwahaha*

But setlevel2 is client aswell serverside? Or is setlevel2 serverside warp all players and setlevel2 clientside warp particular player to particular spot?

The stake through the heart was actually for nailing the vampire to his coffin so he couldn't get up... then you'd do something like burn him, or cut off his head. I think the burning was most prefered, but I ain't really too sure. Loping off the head sounds good too.

osrs 07-19-2003 06:36 PM

Quote:

Originally posted by GoZelda
Funny. And i can't use it clientside or something? Very weird. Anyway, as i already stated, can i get explaination for the other commands aswell?
Client-side is basically for graphics and sounds,server-side checks everything (client.strings arent changed server-side),when you active setlevel2,so the server sends the information for you and you get warped. =p

protagonist 07-19-2003 10:36 PM

From what I understand, in a nutshell, serverside is for for:

A)Having a client interact with other clients(scriptwise of course)
B)Performing functions that require power for things that clients just can't run anymore (setlevel2, editing things in FTP like logs, and such)
C)Storing strings or flags used/edited by multiple NPCs/multiple clients.

DarkDragoon_Lloyd 07-20-2003 10:19 AM

Did someone say Serverside commands?
if
else
for
while
break
continue
destroy
sleep real
function
return
with
join
show
hide

say real;
say2 string;
set string;
unset string;
setimg filename;
setgif filename;
setimgpart filename,real,real,real,real;
setgifpart filename,real,real,real,real;
setskincolor color;
setcoatcolor color;
setsleevecolor color;
setshoecolor color;
setbeltcolor color;
drawoverplayer;
enableweapons;
disableweapons;
putbomb real,real,real;
putexplosion real,real,real;
drawunderplayer;
canbecarried;
cannotbecarried;
canbepushed;
cannotbepushed;
canbepulled;
cannotbepulled;
message string;
showimg real,string,real,real;
hideimg real;
changeimgpart real,real,real,real,real;
changeimgvis real,real;
changeimgcolors real,real,real,real,real;
changeimgzoom real,real;
setarray real,real;
showcharacter;
setplayerprop string,string;
setcharprop string,string;
setstring string,string;
dontblock;
blockagain;
setlevel2 string,real,real;
canwarp2;
setani string,string;
setcharani string,string;
callnpc real,string;
putexplosion2 real,real,real,real;
canwarp;
setshape real,real,real;
setgender string;
setchargender string;
freezeplayer2;
unfreezeplayer;
warpto string,real,real;
cannotwarp;
noplayeronwall;
hitobjects real,real,real;
addweapon string;
removeweapon string;
tokenize string;
tokenize2 string,string;
move real,real,real,real;
addguildmember string,string;
removeguildmember string,string;
removeguild string;
triggeraction real,real,string,string;
putnpc2 real,real,string;
attachplayertoobj real,real;
detachplayer;
saveinfo string,string;
savelog string;
savelog2 string,string;
addstring string,string;
insertstring string,real,string;
removestring string,string;
deletestring string,real;
replacestring string,real,string;
shoot real,real,real,real,real,real,string,string;
setshootparams string;

random(real,real)
sin(real)
cos(real)
arctan(real)
int(real)
abs(real)
arraylen(real)
testplayer(real,real)
testnpc(real,real)
testsign(real,real)
onwall(real,real)
strequals(string,string)
strcontains(string,string)
strtofloat(string)
hasweapon(string)
onwater(real,real)
onwall2(real,real,real,real)
onwater2(real,real,real,real)
getplayer(string)
getnpc(string)
startswith(string,string)
indexof(string,string)
strlen(string)
onmapx(string)
onmapy(string)
vecx(real)
vecy(real)
getz(real,real)
sarraylen(string)
lindexof(string,string)
getangle(real,real)

board[real]
timevar
tiles[real,real]

playerscount
npcscount
signscount
tokenscount
paramscount
timevar2
allplayerscount

x
y
z
width
height
rupees
darts
bombs
hearts
hp
timeout
glovepower
swordpower
shieldpower
hurtdx
hurtdy
id
save[real]
dir
sprite
ap
hurtpower

npcs[real]
npcs[real].x
npcs[real].y
npcs[real].width
npcs[real].height
npcs[real].rupees
npcs[real].darts
npcs[real].bombs
npcs[real].hp
npcs[real].hearts
npcs[real].timeout
npcs[real].glovepower
npcs[real].swordpower
npcs[real].shieldpower
npcs[real].hurtdx
npcs[real].hurtdy
npcs[real].id
npcs[real].save[real]
npcs[real].dir
npcs[real].sprite
npcs[real].ap
npcs[real].hurtpower
npcs[real].z

signs[real].x
signs[real].y

playerx
playery
playerz
playerrupees
playerdarts
playerbombs
playerhearts
playerhp
playerfullhearts
playermaxhp
playerdir
playerglovepower
playerswordpower
playershieldpower
playerheadset
playersprite
playerid
playermp
playerap
playerattachid
playerattachtype
playerlastdead
playerlogintime

allplayers[real]
players[real]
players[real].x
players[real].y
players[real].z
players[real].rupees
players[real].darts
players[real].bombs
players[real].hearts
players[real].hp
players[real].fullhearts
players[real].maxhp
players[real].dir
players[real].glovepower
players[real].swordpower
players[real].shieldpower
players[real].headset
players[real].sprite
players[real].id
players[real].mp
players[real].ap
players[real].attachid
players[real].attachtype
players[real].logintime
players[real].lastdead


*ahem* Thats all I can think of off the top of my head...:rolleyes:

protagonist 07-20-2003 02:07 PM

I didn't bother reading all of those, but tiles[x,y] is not serverside. And most of those aren't commands.

Tseng 07-20-2003 07:23 PM

Quote:

Originally posted by DarkDragoon_Lloyd
Did someone say Serverside commands?
[snip]

*ahem* Thats all I can think of off the top of my head...:rolleyes:

Several of those are not serverside - Please re-examine your list.

Python523 07-20-2003 08:00 PM

Quote:

Originally posted by protagonist
I didn't bother reading all of those, but tiles[x,y] is not serverside. And most of those aren't commands.
psst don't say things you don't know about psst

tiles[x,y] is serverside, stefan added it about a month ago

DarkDragoon_Lloyd 07-20-2003 11:31 PM

Ehm? Those are most of the commands that work serverside, but some work clientside as well... =/

It also includes fuctions, variables, etc.

protagonist 07-20-2003 11:56 PM

Quote:

Originally posted by Python523


psst don't say things you don't know about psst

tiles[x,y] is serverside, stefan added it about a month ago


Well, being that I haven't used it in a month I suppose that's possible. And it still isn't a command.

tlf288 07-21-2003 12:10 AM

Quote:

Originally posted by protagonist



Well, being that I haven't used it in a month I suppose that's possible. And it still isn't a command.

I think it would be calssified as a command considering it acts more like one. You basically just pass a paramater onto the board even though you are using the '=' sign to set it.

protagonist 07-21-2003 12:34 AM

Quote:

Originally posted by tlf288


I think it would be calssified as a command considering it acts more like one. You basically just pass a paramater onto the board even though you are using the '=' sign to set it.


I suppose, yeah. I've only ever used it for tile checks.

Tseng 07-21-2003 06:37 AM

Quote:

Originally posted by DarkDragoon_Lloyd
Ehm? Those are most of the commands that work serverside, but some work clientside as well... =/

It also includes fuctions, variables, etc.

onwall2, setshootparams, shoot (to name a few).

You're saying these work serverside? :p

Python523 07-21-2003 07:07 AM

Quote:

Originally posted by Tseng


onwall2, setshootparams, shoot (to name a few).

You're saying these work serverside? :p

o_O all 3 of those work clientside and serverside

CheeToS2 07-21-2003 07:57 AM

Quote:

Originally posted by Python523


o_O all 3 of those work clientside and serverside

I think onwall2 is only serverside ;x


All times are GMT +2. The time now is 10:57 PM.

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