Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9  
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
 


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 09:17 AM.


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