Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   Ok. I give up... (https://forums.graalonline.com/forums/showthread.php?t=14048)

BocoC 10-07-2001 11:05 AM

Ok. I give up...
 
I need help!!!
NPC Code:

if (created) { timeout=0.1; }
if (timeout) {
if (strtofloat(#s(this.mode))==0 || mode==0 || this.mode==0) {
setcharani idle,;
setcharprop #c,No Hit;
}
if (strtofloat(#s(this.mode))==2 || mode==2 || this.mode==2) {
setcharprop #c,Ow;
setcharani dead,;
x-=1;
sleep 2;
x+=1;
setstring this.mode,0;
}
timeout=0.1;
}
if (washit) {
mode=2;
this.mode=2;
setstring this.mode,2;
}
//#CLIENTSIDE
if (created) {
showcharacter;
}
if (washit) {
mode=2;
this.mode=2;
setstring this.mode,2;
}


This is my ATTEMPT at getting the #@$#(@%$# 'washit' flag to work. But, I can't do it! I want to create a baddy that can be fought by multiple people (ie, serverside baddy). Only problem is, the flag 'washit' is clientside! No matter WHAT I try, I cannot get values I set in the clienside portion of the script to "carry over" to the serverside. Anybody know how this is done? It's like the dragon bosses of the bomy moon on New Main. If you hit them, can't everybody see that you damaged it? And the baddies on Providence. I'm pretty sure those can be fought by multiple people. Does ANYBODY UNDERSTAND ME!!??!!??!!?? ......help..... I even tried doing a triggeraction on itself!!!

BocoC 10-07-2001 09:49 PM

please help

BocoC 10-08-2001 07:47 AM

Be kind! Help me please!

Aknts 10-08-2001 08:00 AM

I thought all baddies could be killed by people and like if one hits everyone sees.

BocoC 10-08-2001 08:28 AM

No. I want to script my own baddy. But, the flag 'washit' is only clientside. That is my problem!

LilbrojX 10-08-2001 09:33 AM

hmm... maybe you can use trigger actoin, and have a script built into a system npc that triggers an action whenever the player swings his sword... then the baddy has to detect it, and it gets hurt. :D

BocoC 10-08-2001 11:13 AM

It might work, but I dunno... I wish Stefan would actually reply to me =/

BocoC 10-08-2001 11:35 AM

*On knees*
HELP ME!!! I feel like breaking things! I am frustrated! Help!!!

Admins 10-08-2001 08:11 PM

OK

simple solution:
do something like
if (created) {
setshape 1,48,48;
}
Otherwise the server-side script
don't know the size of the npc
and asumes that its a hidden npc
(which if course cannot be hit).
You could also do the command
showcharacter on the server-side,
then the server would know its
an npc that has the size of a player

revalation 10-08-2001 08:15 PM

Ask and you shall receive, well in most cases.;)

Admins 10-08-2001 08:18 PM

Quote:

Originally posted by revalation
Ask and you shall receive, well in most cases.;)
Yes :D be lucky to post it some hours before I
am I am going on my monthly forum visit :)

BocoC 10-08-2001 09:05 PM

Thanks Stefan! Boy, I am sure stupid this month. 23 more days until I can be un-stupid again:D

ZORG1986 10-08-2001 11:08 PM

LoL, All that stress over a problem that is so simply solved

Jerrytyrrell64 10-27-2001 11:44 AM

Scriptors guids- if youve written one or have one or some please reply
 
if you have a scriptors guide or guides please email it to me at [email protected] :D

StraightHustler 10-28-2001 03:28 PM

Stefan always comes through!


All times are GMT +2. The time now is 02:23 PM.

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