![]() |
My question is, currently, why isn't it copying the level correctly?
|
Quote:
|
Quote:
Edit: Inside joke, Skyld gets mad when you use "i" and not "this.i". |
this.i doesn't matter that much
|
If you use it clientside in more than one script, they will conflict. I know that what you are trying to do is serverside, but still it is bad practise.
|
Quote:
|
I know they conflict when it's clientside, but geuss what, it's serverside.
|
Quote:
|
Quote:
Quote:
Quote:
|
Listen: If you want the value of a variable to be preserved between frames then yes, a this. prefix should be used. But that is not the case with simple iterative variables. It is wasteful to have a copy for every separate NPC.
|
Quote:
|
Isn't copylevel serverside?
|
yes it is, and SO IS THE NPC USING IT!
|
i think everyone forgot the orginal problem
|
Me too, I would restart the thread if that wasn't illegal, but now people are arguin over something pointless...when...my thread...is still...going....on.........damn i'm a jackass :(
|
Hey what's the variable for gravity? i want to change mine so that I can use it for spells....(there's bugs when I use 0 for power and zangle)
|
Quote:
playerz? playerz= playerz+= playerz-= playerz++ playerz-- but playerz doesnt go below 0. |
It's "gravity."
|
Catigus, i meant for shoot, and tolfanate, thanks. Anyway i still need this problem fixed XD
|
Quote:
|
yes i was, but now i wish to have the problem fixed. I have an idea, but i need to know how yto trigger an action into the npcserver or a db npc (I'm thinking maybe only a db can copy levels)
|
With all this talk about the deletelevel ; command , when using it does the npcserver remove DB npcs from that level before deleting it ??
|
Quote:
Quote:
|
what's the exact command you used? I cant get copylevel to work no matter what typ of npc uses it :(
|
I have used it before
I think the destination copyed level has to be in a subfolder of the level you are copying? I remember experiencing omething odd like this and taking a while to pick up on it |
I havent used it in a while but I think I had the template level in levels/ and it copied to a subfolder and only had the folders on the 2nd part.
like copylevel battletest.nw,battles/battletest#v(var).nw; |
I'll try that, and announce if it works :-P
EDIT: No, that doesn't seem to work either, I tested it by puttin it in the npcserver, so I didnt ahve to go online, and i'l ltry it on molds too, but i doubt it'll work |
I too have gotten it to work before...
I made a tent NPC that would spawn tents with individual insides. I had the actual tent NPC put down via putnpc2 And when you entered the tent, your last coordinants were saved... It wasnt exactly fool-proof, you could go in a tent and not come out for a day, and end up stuck on a tree.. I don't remember if I fixed that or not. Now I would have made a level-script that checked with a DB NPC where I would store coordinants and status (maybe dates) of tents to see if the one you are in is still active/in existance... In the class NPC, I had an if (created) { copylevel levels/tents/tent_basic.nw,levels/tents/tent_#v(server.tentquary); } NOTE; Dont do it the lame way I did it... |
Eh....?
PHP Code:
PHP Code:
PHP Code:
God knows i didnt test it so there may be some grammar errors or script errors. And I was inquiring earlier do DB npcs get deleted from level if you use the deletelevel command ? eh? |
yes they do, I had something stored there and it was deleted by accident, and so ewas the DN npc, and anyways, i tryed the ways, but it doesnt seem to be copying, I am gonna try doing several of those in the same script, and see if any of them activate..
|
| All times are GMT +2. The time now is 03:23 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.