Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Looking for some help.. (https://forums.graalonline.com/forums/showthread.php?t=18011)

konidias 11-27-2001 11:31 PM

Looking for some help..
 
I need someone to help me script something for the 2001 server. You will get credit on the scripting, and also a reward on 2k1 for the work you do.

However, I need someone that really knows their stuff, not someone that edits other scripts and puts them together to make something...

I need someone that can do the following:
-make good menu systems using showimg
-script multiplayer things that involves sending and recieving information to certain players on a level
-play 2k1 (has an upgraded account they can use)
-use functions
-small bit of npc server scripting

and most importantly, can get things done quick, and make the code small and efficient :)

This is a lot to ask but it will be a fun project and you will be rewarded.

If you're up to it just contact me on aim or icq
aim: konidias
icq: 45848630

Yeah, and you need one of those messengers ;)

Saga2001 11-28-2001 12:09 AM

I wanna help
 
I dont't have aim here so i will just say i can do all of those things IM me, my sn is PastAustin i will im you if u don't im me! :-) bai

Poogle 11-28-2001 03:17 AM

Re: Looking for some help..
 
Quote:

Originally posted by konidias
-script multiplayer things that involves sending and recieving information to certain players on a level
Easy... i know the scritp I just cant post it right now cuse I dont have my computer with graal to make sure it works

LiquidIce00 11-28-2001 03:19 AM

if you just want to trade info w/o npc server and w/o using getplayer stuff you could just do something like
NPC Code:

for (this.i=1;this.i<playerscount;this.i++) {
triggeraction players[this.i].x,players[this.i].y,whatever,#a;
}


just an idea.

KJS 11-28-2001 04:22 AM

humm I beleve I can help but you never respond to my aim im's

mikepg 11-28-2001 04:28 AM

...
 
Im pretty good at those things (except NPC server, which i only know the basics)

TDO2000 11-28-2001 05:20 AM

Quote:

Originally posted by LiquidIce00
if you just want to trade info w/o npc server and w/o using getplayer stuff you could just do something like
NPC Code:

for (this.i=1;this.i<playerscount;this.i++) {
triggeraction players[this.i].x,players[this.i].y,whatever,#a;
}


just an idea.

you would have to use
triggeration players[this.i].x+1.5,players[this.i].y+2,whatever,#a;

if u do not add the small values to x and y triggeraction won't work right...

konidias 11-28-2001 05:27 AM

Wouldn't that track only the first player it gets? Or more then one player?

I need it to check two seperate players only.. like for example with the traders in the trading house, if one player is on the buyer and one on the seller square, the npc will walk to them and ask the buyer for the item.. then when the buyer only says the item name it will get this info.. I can't have it getting info from anyone else or anything like that.. wouldn't the best way be to use getplayer?

TDO2000 11-28-2001 05:33 AM

because triggeraction doesn't always work (and the trader is made with getplayer) it should be the best possible way...

KJS 11-28-2001 08:15 AM

with(getplayer(theaccount here)){

}

then you can edit the other persons flags and stuff also...

thats how the trading script does it I beleve

Saga2001 11-28-2001 12:53 PM

Wait sooooo.....
 
so if i wanted to trigger servergetchat, and the npc saying:
NPC Code:

if (actionservergetchat) {
actions...
}


thanthe npc would call:
NPC Code:

if (playerchats) triggeraction playerx+1.5,playery+2,servergetchat,#a;


?!?!?!?!

konidias 11-28-2001 02:39 PM

The thing I am stuck on actually.. is how on earth to do my menu's for this.. Okay, here is what I have:

A menu where the player can select from several options
An npc that checks for a player in an area

Now I need to be able to have the menu pop up when the player is in the area.. but the npc is not a weapon the player has or anything, the npc is just on the level.. how on earth would this be accomplished? I mean it's silly to put all the menu coding into the npc that checks the players postion.. plus the menu has lots of stuff like functions and timeout which would really screw up the npc that checks your position...

How would I call the menu script from the npc, and only load the menu for that one player? :confused:

triggeractions?

Slaktmaster 11-28-2001 02:59 PM

I think I know how to do most of it.

KJS 11-28-2001 07:58 PM

Quote:

Originally posted by konidias
The thing I am stuck on actually.. is how on earth to do my menu's for this.. Okay, here is what I have:

A menu where the player can select from several options
An npc that checks for a player in an area

Now I need to be able to have the menu pop up when the player is in the area.. but the npc is not a weapon the player has or anything, the npc is just on the level.. how on earth would this be accomplished? I mean it's silly to put all the menu coding into the npc that checks the players postion.. plus the menu has lots of stuff like functions and timeout which would really screw up the npc that checks your position...

How would I call the menu script from the npc, and only load the menu for that one player? :confused:

triggeractions?

well if you want this menu to show up in certain areas I would recomment it being a weapon because that would be easier to do...

but I know you cant always do it that way. Triggeraction would be kind of hard unless you have it
//#CLINETSIDE
because then you can check the players x and y values.

but if you dont have it clientside then you could do it by just putting a npc in every level you need it in with the npcs coding for hte menu (I would probably not do this way)

TDO2000 11-28-2001 09:40 PM

I would do it like the bank-card on classic

thw whole menu and stuff inside a weapon.. so if u enter the level and use it in front of the trader (or whatever) this trader only gets the values for the player and the item to trade...


All times are GMT +2. The time now is 09:57 AM.

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