Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   spawn baddy probs... (https://forums.graalonline.com/forums/showthread.php?t=73823)

theHAWKER 05-05-2007 01:21 AM

[/QUOTE]

Quote:

Originally Posted by cbkbud (Post 1305550)
Look, your code is ****. You took great code from Gambet, erased his name and put your own on it, and then cry to us when it doesn't work.

Firstly, IT IS SERVERSIDE!

Secondly, MAKE A CLASS!

Thirdly, DO NOT MIX GS1 AND GS2!

Go to RC, go to classes, than create a new class. Name it "baddy". In that class, put Gambet's GBaddy. Then put this in a level.

PHP Code:

function onPlayerChats()
{
  if ( 
player.chat == "/baddy" )
  {
    
putnpc2player.xplayer.y"join( \"baddy\" ); ");
  }


Please take the time to look at the wiki and learn GS2, then maybe we won't all have to cry whenever you post.

EDIT:


I second that.

that worked thank you soo much.

but how do i delete an npc?

godofwarares 05-05-2007 01:36 AM

Quote:

Originally Posted by theHAWKER
that worked thank you soo much.

but how do i delete an npc?

Find the index of the NPC (usually npcscount-1):

PHP Code:

with (findNpc(npcs[npcscount-1]))
{
     
destroy();



theHAWKER 05-05-2007 01:38 AM

i dont understand how i would use that x.x

godofwarares 05-05-2007 01:40 AM

Quote:

Originally Posted by theHAWKER (Post 1305564)
i dont understand how i would use that x.x

Then learn GScript.

theHAWKER 05-05-2007 01:48 AM

Quote:

Originally Posted by godofwarares (Post 1305566)
Then learn GScript.

yeah, ur a real help...

cbk1994 05-05-2007 02:02 AM

Quote:

Originally Posted by theHAWKER (Post 1305570)
yeah, ur a real help...

Please read my post in the code gallery script by killerouge that you posted in.

I'm not going to bother wasting my time to make you a script so that you can put your name on it.

Look on the wiki, and try to learn to script.

theHAWKER 05-05-2007 02:08 AM

omg... its not my script if u made it x.x
and besides this dosn't just help me it helps other player world managers who want a cool script to use to make graal more fun!

godofwarares 05-05-2007 02:40 AM

Quote:

Originally Posted by theHAWKER (Post 1305581)
omg... its not my script if u made it x.x
and besides this dosn't just help me it helps other player world managers who want a cool script to use to make graal more fun!

Dude, If you want people to help you, You need to first put in the time and effort to learn GScript yourself. Otherwise, You're just wasting everyone's time by just asking for certain scripts.

Rapidwolve 05-05-2007 03:00 AM

Quote:

Originally Posted by godofwarares (Post 1305588)
Dude, If you want people to help you, You need to first put in the time and effort to learn GScript yourself. Otherwise, You're just wasting everyone's time by just asking for certain scripts.

I second that

zokemon 05-05-2007 12:04 PM

Quote:

Originally Posted by xXziroXx (Post 1305536)
Use GS2!!

putnpc2(player.x, player.y, "join(\"classname\");");

I don't like that as it puts the "join()" function in the root of the script which in a sense is just a way of doing gs1.
I do this instead:
putnpc2(player.x, player.y, "").join("classname");


All times are GMT +2. The time now is 08:19 AM.

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