Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Code Gallery
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-15-2011, 05:30 PM
iBeatz iBeatz is offline
Kavan
iBeatz's Avatar
Join Date: Dec 2010
Location: Northern Ireland, UK
Posts: 154
iBeatz will become famous soon enough
Send a message via Yahoo to iBeatz
Quote:
Originally Posted by irock1 View Post
Setlevel2 dosent work on it to warp players
You probably have used setLevel2 clientside. setLevel2 only works serverside. To use setLevel2 in a weapon such as this, I'd recommend using the triggerServer function to send the player object to the server, and then setting that player's level there.

Ie.
Clientside:
PHP Code:
triggerServer("gui"name"SetLevel"player object here); 
Serverside:
PHP Code:
function onActionServerSide() {
  if(
params[0] == "SetLevel"){
    
// your setlevel stuff here
  
}

__________________

Intelligence without ambition is like a bird without wings.

Reply With Quote
  #2  
Old 09-15-2011, 09:50 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by iBeatz View Post
Clientside:
PHP Code:
triggerServer("gui"name"SetLevel"player object here); 
There's never any reason to send the player's account in a trigger.
__________________
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 06:06 PM.


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