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 07-09-2011, 03:42 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
A little help with a scrip t please? :3

basically iv got a warning script in a weapon and it doesnt work.. for what reason i dont know. could someone who is far more advanced at scripting please take a look at it?

Thanks
-Gunderak


//#CLIENTSIDE
function onPlayerChats() {
if (!player.chat.starts("/warn")) return; // If it doesn't start with '/warn' do nothing

temp.pl = findplayer(player.chat.substring(6)); // Find the player that needs a warning

if (temp.pl == null) { // If the player isn't found
player.chat = "Couldnt Find " @ player.chat.substring(6) @ "";
}
else {
temp.pl.setlevel2("warning_room.nw", 10, 10);
temp.pl.say2("You've been warned!!!");
}
}
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote
  #2  
Old 07-09-2011, 04:01 AM
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
Since it's clientside you need to use triggers. Read the posts linked in this section of Jer's scripting guide which I pointed you to when you posted this question earlier.
__________________
Reply With Quote
  #3  
Old 07-09-2011, 04:12 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
iv read that but am still unsure of how to use a triggerserver command to do this task X_X
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote
  #4  
Old 07-09-2011, 04:52 AM
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
This thread (posted five days ago, with a descriptive title, and still on the first page of the scripting forum) has the information you need.

If you're still having trouble with this I would suggest you find a scripter for your server as you've not convinced me that you're actually interested in learning based on the posts you've made today.
__________________
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 08:19 PM.


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