Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Script stupid.... (https://forums.graalonline.com/forums/showthread.php?t=9690)

Beatles413 08-16-2001 05:13 AM

Script stupid....
 
What is the GIF for the Survivor Dragon on a blank NPC....

Also.. If someone can take the time to teach me how to script.. over aim or something.. it would be apreciated

Tin Man 08-16-2001 05:15 AM

For learning NPC scripting i suggest reading the NPC Scripters guid on the main site and also looking a scripts for NPCs. These two suggestions should at least give you a basic idea on how to script.

KJS 08-16-2001 06:49 AM

there is no 1 gif... for the dragon... its a gani...
and before putting it up on a server.. i would personally ask if i could use the gani and art....

LiquidIce00 08-16-2001 06:56 AM

there is a gani template thingy tho

Poogle 08-16-2001 07:38 AM

For every gani theres a image like for every LiquidIce00 theres uglyness

LiquidIce00 08-16-2001 07:51 AM

Quote:

Originally posted by Poogle
For every gani theres a image like for every LiquidIce00 theres uglyness
Lol Poogle I wouldnt be talking
you are like noob scripter and i helped you out like a few times lolz
ur so noob and sell out

Beatles413 08-16-2001 09:45 AM

Ok.. I have another Question.. How do i script a warp so that only people w/ a guild tag can get through

KJS 08-16-2001 09:50 AM

do something like this in a npc. Well there is a few more lines you would have to put in for a p2p server (like setshape) but like here is the basics

NPC Code:

//KJL's Example
if(playertouchsme&&strequals(#g,GuildName)
setlevel2 level,x,y


Beatles413 08-16-2001 11:06 AM

Thanks But I need to ask a little more...I need to make it so someone with the tag can say Open Castle.. And it will be open to all

Lyndzey8000 08-16-2001 11:13 AM

NPC Code:

if(!open){
show;
}
if(strequals(#c,OpenBridge) && strequals(#g,GuildName)){
set open;
}
if(playertouchsme&&!strequals(#g,Guildname)&&open) {
setlevel2 levelname,x,y;
}
if(playertouchsme&&strequals(#g,Guildname)){
setlevel2 levelname,x,y;
}


Could be easier, and I am not sure that will work. I am too tired to think right now.

Beatles413 08-16-2001 12:01 PM

Well Lindzey.. That didn't Work.. I am looking for a script like dustari's... Only Kingdom members can ebter unlee one says "Open Room" and then it says Free entry.. Plz someone send me that script

KJS 08-16-2001 12:49 PM

try this... (haven't tested it so I dunno if it will work but I assume it will/ it should work)
NPC Code:

//KJL's Example
if(created)
setshape 1,Width (in tiles)*16,Height (in tiles)*16;
if(playertouchsme&&(strequals(#g,GuildName)||this.open==1))
setlevel2 level,x,y;
if(playerchats&&strequals(#g,GuildName){
if(strequals(#c,Open Castle))
this.open=1;
elseif(strequals(#c,Close Castle)))
this.open=0;
}


Beatles413 08-16-2001 01:15 PM

OK.. One last thing.. How do you Script Getting a Beer at a bar... Just by saying beer.. for 1 gralet... it automatically takes the money

fuzie 08-16-2001 01:57 PM

DUDE!...dUdE!.....DuD3!....!!DUde!!....don't ask for scripts...that doesn't make u improve ..it just makes u lazy.....some advice would be read the npc programming guide about 45 times and actually understand what it means and try to make your script..if u have any questions or problems just tell us on here.......
---------------------L8---------------------
--Brian-------------------------------------

Beatles413 08-16-2001 02:27 PM

.. I dont understand those stupid guides....
Can someone just tell me the beer at the bar script

fuzie 08-16-2001 02:36 PM

I'm am being helpful to HIS scripting learning....DONT NE ONE TELL HIM!!!!!!!!!...I'm am being helpful to HIZ SCRIPTING LEARNING

Kobain319 08-16-2001 10:58 PM

While were on the subject of the bar could anyone tell me how to script a bar tender that gives out beer for 1g...???

SkooL 08-16-2001 11:07 PM

Quote:

Originally posted by Beatles413
.. I dont understand those stupid guides....
Can someone just tell me the beer at the bar script

Learn to script...the bar script is stupid anyways...but if you want it, here it is.
NPC Code:
if (playerchats&&strequals(#c,buy beer) {
putnpc beer.gif,beer.txt,playerx,playery-2;
playerrupees-=5;
}


Then make a .txt file in the same directory with...
NPC Code:
if (playertouchsme) {
playerhearts+=1;
destroy;
}


Beatles413 08-17-2001 12:11 AM

Adreneline... I oculd't get your Script to work.. it sayed.. Unexpected flag something


All times are GMT +2. The time now is 01:24 PM.

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