Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-11-2011, 11:12 PM
Tricxta Tricxta is offline
The Muffin Man
Tricxta's Avatar
Join Date: Oct 2010
Location: Australia
Posts: 563
Tricxta is a jewel in the roughTricxta is a jewel in the rough
setlevel 2 clientside to serverside issues

Hey guys, I tried figuring this out and wasted a few hours on it.

I've also looked at the threads that some people made a few years ago and I wasn't keen to bump them. The examples given either were very non descriptive or had chunks deleted from them.

So how would I go about doing this?

Im using clientside script functions in my code so simply taking out the //#CLIENTSIDE will not work. Can someone please shed some light on this for me?
Reply With Quote
  #2  
Old 09-11-2011, 11:14 PM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
I don't see a question.
__________________
Reply With Quote
  #3  
Old 09-11-2011, 11:23 PM
Tricxta Tricxta is offline
The Muffin Man
Tricxta's Avatar
Join Date: Oct 2010
Location: Australia
Posts: 563
Tricxta is a jewel in the roughTricxta is a jewel in the rough
how do I trigger setlevel2 which is serverside from clientside?

Sorry I got carried away in explaining why I had to make a new thread :S
Reply With Quote
  #4  
Old 09-11-2011, 11:24 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Here's a couple.

Level-NPC Example:

PHP Code:
function onCreated() {
  
this.setshape(13232);
}

function 
onActionWarp() {
  
player.setlevel2("level.nw"3030);
}

//#CLIENTSIDE
function onPlayerChats() {
  if (
player.chat == "/warp") {
    
triggeraction(this.x+1this.y+1"Warp""");
  }

Weapon-NPC Example:

PHP Code:
function onActionServerSide() {
  if (
params[0] == "warp") {
    
player.setlevel2("level.nw"3030);
  }
}

//#CLIENTSIDE
function onPlayerChats() {
  if (
player.chat == "/warp") {
    
triggerserver("gui"this.name"warp");
  }

__________________
Quote:
Reply With Quote
  #5  
Old 09-11-2011, 11:41 PM
Tricxta Tricxta is offline
The Muffin Man
Tricxta's Avatar
Join Date: Oct 2010
Location: Australia
Posts: 563
Tricxta is a jewel in the roughTricxta is a jewel in the rough
I don't know how I can thank you enough :0 Thank you very much fowlplay
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:55 PM.


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