Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   putnpc params (https://forums.graalonline.com/forums/showthread.php?t=11434)

LiquidIce00 09-08-2001 04:20 PM

putnpc params
 
dunno if there is a way (and dunno how putnpc2 works)
but it would be neat if you could send params to putnpc ..

grim_squeaker_x 09-08-2001 04:44 PM

You could do:
NPC Code:
if (created) {
putnpc something.gif,something.txt,x,y;
triggeraction x,y,paramsend,params;
}


LiquidIce00 09-08-2001 07:07 PM

Quote:

Originally posted by grim_squeaker_x
You could do:
NPC Code:
if (created) {
putnpc something.gif,something.txt,x,y;
triggeraction x,y,paramsend,params;
}


1 problem
putnpc is usually a bit laggy.
so when you triggeraction the putnpc might not already be there..

LiquidIce00 09-08-2001 08:16 PM

Quote:

Originally posted by Kaimetsu


Liquid has a very good point. Putnpc is sent via TCP (I think) so it is easily outrun by the faster UDP-based triggeraction.

whats the diff. between putnpc and putnpc2?
and putnpc2 is p2p only rite?

LiquidIce00 09-08-2001 08:40 PM

2 things that would be really cool
1:make putnpc faster!
2:make putnpc image,txt,x,y,params;
^_^ okay thank u come again ^_^

LiquidIce00 09-08-2001 09:04 PM

Quote:

Originally posted by Kaimetsu


If Stefan used UDP to solve #1 then it'd create more problems than it'd solve. UDP datagrams are very unreliable and often don't reach their destinations. So although putnpc would work faster, it also wouldn't work at all some of the time.

OHHHH I GOT GOOD IDEA
like when you update a txt file you have to do update level on it (like the startmessage) and if the txt file is updated then it downloads it again and does the putnpc.. but if it hasnt been updates then it doesnt need to download it again (since it would be encrypted on the players pc) it just does the command.. this would make it faster o.o

LiquidIce00 09-08-2001 09:10 PM

Quote:

Originally posted by Kaimetsu


I'm not sure what you mean (I've never run a server or anything like that y'see). Which txt files are you talking about?

the putnpc uses a txt file located in the levels folder..
and im guessing that everytime you use putnpc it downloads that txt file.. and if it is a big file it prolly takes longer to do the putnpc command ..

now what I mean by the startmessage its the news that pops up when you log on.. if you notice .. it only pops up once.. and when you upload a new one you need to do updatelevel on it .. so what im saying is the txt should needed to be updated level on so it knows its a new one.. that way it wont need to d/l a new one everytime you use putnpc just when its been updated..

LiquidIce00 09-08-2001 09:19 PM

Quote:

Originally posted by Kaimetsu
I understand now. Well, I don't know how putnpc works, but why would it store the file on the harddrive if it was just going to redownload it every time? The whole point of putting it on the harddrive is that it doesn't need to be taken from the server, so I bet putnpc doesn't send the whole script again. Maybe it just sends the script along with something to identify the latest version. If (and only if) the versions don't match then it downloads the latest one. That'd work.
thats what im saying!
that way it only needs to do the TCP send when it needs to redownload the txt. . else he can just use UDP to tell it to putnpc and the x,y and so on..
right now i believe it d/l's the script everytime because when you upload a new txt file the next time u use putnpc it already uses the new one ..

LiquidIce00 09-08-2001 09:29 PM

Quote:

Originally posted by Kaimetsu


Woah, if he uses UDP to tell the server to place the NPC then the message might not get through and sometimes the putnpc command would have no effect. Isn't it better to be reliable, but slightly slow?

=\
im sure it can get through .. else you wouldnt use UDP for nothing since it may or may not get through ..
it only messes up in larger data and so on ..

oh and it would still be better to do the update thing even if ur still using TCP cuz it wont need to send the whole script just a line

LiquidIce00 09-08-2001 09:38 PM

Quote:

Originally posted by Kaimetsu

I agree, but I suspect that Stefan already uses something similar to my method.

Your method is what I was trying to tell you yo..

LiquidIce00 09-08-2001 09:41 PM

Quote:

Originally posted by Kaimetsu


Ah, but yours relied on something similar to an updatelevel. Mine wouldn't need that.

yes it does..
cuz startmessage checks that way.. it can be by date but the point is that it doesnt d/l all the time . just when its been upgraded on the ftp ..
o.o

LiquidIce00 09-08-2001 09:49 PM

Quote:

Originally posted by Kaimetsu
Hmm, I suppose the argument is in the semantics. I suppose it would need some form of updating but it wouldn't need to be ingame. You'd just have to tell the server that you've uploaded a new version, and it would auto-increment.
yeah thats why you would do update level mytxt.txt or whatever..
or it can just do a datecheck .. but still if it cuts down lag it be really cool .. and putnpc with params would be ownage times 2

LiquidIce00 09-08-2001 09:55 PM

Quote:

Originally posted by Kaimetsu


You wouldn't necessarily use a special command ingame. There'd possibly be a program for it or something.

Anyway, normal putnpc is for non-P2P, which is frankly a lesser concern now. Mr K should work on P2P stuff.

well u can already set when u use putnpc2 using with and crap.. but not for putnpc .. and he still should do some work to the free scripting area . SO BLAH

LiquidIce00 09-08-2001 10:13 PM

im sure it wouldnt take him very long to do this
and ..
i hope you mean first priority ;P

LiquidIce00 09-08-2001 10:23 PM

Quote:

Originally posted by Kaimetsu


Um... oops. You're right. But yeah, it might not take him long but it also might not take him long to do something for P2P.

LOOK IT WOULD BE NIC TO HAVE OIETOIETE
ASD
FA
D
SDA
SD
OK?

LiquidIce00 09-08-2001 10:37 PM

Quote:

Originally posted by Kaimetsu


It would be nice if Stefan gave me his life savings but I don't expect him to.

it would be nice if u shut up and just agreed

LiquidIce00 09-08-2001 10:56 PM

Quote:

Originally posted by Kaimetsu


I can't agree if you're wrong.

how am i wrong
u dont think it would be nice to have params on putnpc ?
I guess you like less commands =\

LiquidIce00 09-08-2001 11:04 PM

Quote:

Originally posted by Kaimetsu


I like commands that are useful. Stuff that I'd never need to use is just pointless to me.

you never know if you are going to need it .. ^^
and it can be used by many other ppl .. so its not 'pointless'

LiquidIce00 09-08-2001 11:15 PM

Quote:

Originally posted by Kaimetsu


Putnpc doesn't even work with an NPC Server, and I have no intention of scripting for something without one of those.



It's pointless to me and many others who don't care about non-P2P servers.

most ppl play non p2p . matters for them .. ;)

LiquidIce00 09-09-2001 01:38 AM

Quote:

Originally posted by Kaimetsu


Those people aren't as important.

ahah and I suppose you are important to graal?
its a game you acting like its a big deal
loser

LiquidIce00 09-09-2001 01:52 AM

Quote:

Originally posted by Kaimetsu


Haha. Who's the one that's taking all this so seriously and getting angry over one little command? From an objective standpoint, it's more important to please paying customers. It's basic business.

did I say not to work on p2p and work for free ??
no i didnt.. I said he should do that .. Stefan makes tons of updates I doubt it would take him that long to do what im saying .
and you are talking about "important" .. thats just wrong..

LiquidIce00 09-09-2001 02:04 AM

Quote:

Originally posted by Kaimetsu


There are a million little things that need work. Augmenting putnpc should be a low priority.

okay whatever.. I dont feel like arguing..
point of the thread:
putnpc should have params.. and should be made faster.

SSj_Link 09-09-2001 02:18 AM

Kaimetsu, keep your own opinions, your not the only scripter in graal, and Liquid was only expressing his opinion, so dont be stubburn Kaimetsu, but you were right about the P2P custumers, but it is equally important to have all players happy
not just paying ones



-FrEaKy CaRnIe-

LiquidIce00 09-09-2001 05:15 AM

Quote:

Originally posted by Kaimetsu


Ah, see I'm talking from a logical viewpoint. That's why we disagree.

actually no
how many people test out Graal before they buy a p2p acct?
now wouldnt it be most likely that those people would upgrade their acct if they found the free graal good? if they found it bad .. then why get a p2p acct?
see thats logic.

Falcor 09-09-2001 04:03 PM

Do i smell a flame war cookin? Nah. Putnpc i think is a usless and stupid command that causes more problems then it does good. putnpc2 however is nice becasyue it server-side. I remember one day on lostworlds where the whole place was littered with putnpcs @.@ it was funny but anoying. And we also figured out how many NPCs could be on a lvl befor it just didnt place anymore. It was like 32 or something around there.


All times are GMT +2. The time now is 03:09 PM.

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