Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Bush/Pot/Rock Drops (https://forums.graalonline.com/forums/showthread.php?t=134267725)

sssssssssss 01-04-2013 02:37 AM

Bush/Pot/Rock Drops
 
So in a long effort to figure out some of the, probably, most easy things, I'm lost on server drops for bushes, rocks, and pots.

I made the idiot mistake of keeping savelevels=true, now it's false, and bushes and all respawn as they should. I also have the graal class for gralats up, its exactly as it should be, gani is downloadable and all. I also have
PHP Code:

bushitems=true
baddyitems
=true 

Nothing drops. I've cut down tons of bushes.

At one point in trying to get this to work, I also had

PHP Code:

bushitemtypes=greenrupee,bluerupee,goldrupee,darts,bombs,heart
deathitemtypes
=greenrupee,bluerupee,goldrupee,darts,bombs,heart
spawnrategreenrupee
=100
spawnratebluerupee
=35
spawnrategoldrupee
=5
spawnrateheart
=80
spawnratebombs
=45
spawnratedarts
=40 

... but it being there or not has made no difference.

The only other thing I could think of was F2 saying it can't find this:
PHP Code:

shopglobal_gelat.png 

... but I don't know if that's to the gralat gani or not and if it matters.

I've tried the edited gani and code (which I'd rather use anyways) here: http://forums.graalonline.com/forums...hp?t=134263706

... and it still didn't do anything.

I'm pretty lost. Isn't this supposed to work default on type 0 tilesets? Am I needing more classes or something to make it work default (I don't want custom, just default for now)? Is there some other server option that would stop this (savelevelsmessage=true? I dunno...)?

It's one of the most stupid, simple things and I can't get it to work period.

sssssssssss 01-04-2013 03:02 AM

Also just to add, I have a rupee "drop" weapon for kicks, and it works fine dropping gralats with putnpc.

If I need to upload the "gralats" class I can, but that still doesn't solve the hearts, darts, and bombs unless I have a setting wrong or they need classes too. I simply just do not know...

callimuc 01-04-2013 03:20 AM

how are you cutting your bushes? as i remember you said you are having a custom movement. actually it still should work when you remove those tiles via script (on clientside only i think) but maybe the error is with your movement? did you try to disable it and check if it would work than?

sssssssssss 01-04-2013 03:22 AM

It's all default movement. I have some custom moves, but nothing is replacing anything script wise for slashing. The only the different is a gani that has absolutely nothing special in it, all default (we have some additions to the movement system, but outside of a freezeplayer or a temporary disabledefmovement() its all default, and the swing is for sure).

xXziroXx 01-04-2013 03:48 AM

Quite sure stuff doesn't drop from type0 tiles. Try a level with type1 tiles, see if it works.

sssssssssss 01-04-2013 03:56 AM

No we switched to type 0 because type 1 wouldn't even pick up bushes/rocks/pots on default (yes they were in the right spot) so not saying I'm right but I don't see drops working on type 1 if you can't even pick up the tiles (http://forums.graalonline.com/forums...hp?t=134267674), unless something else is wrong and type 1 respawns. :/


Weird thing is the player die works fine and drops stuff.

Just in case:
PHP Code:

#Gameplayoptions
startlevel=armageddon-onlinestart.nw
startx
=29.5
starty
=10.4
unstickmelevel
=armageddon-onlinestart.nw
unstickmex
=29.5
unstickmey
=10.4
jaillevels
=jail.nw
heartlimit
=8
swordlimit
=2
startap
=70
aptime0
=75
aptime1
=150
aptime2
=300
aptime3
=600
aptime4
=1200
aptime5
=2400
putnpcenabled
=true
itemdropevents
=false
bushitems
=true
baddyitems
=true
respawntime
=30
horselifetime
=120
baddyrespawntime
=60
bushitemtypes
=greenrupee,bluerupee,goldrupee,darts,bombs,heart
deathitemtypes
=greenrupee,bluerupee,goldrupee,darts,bombs,heart
spawnrategreenrupee
=100
spawnratebluerupee
=35
spawnrategoldrupee
=5
spawnrateheart
=80
spawnratebombs
=45
spawnratedarts
=40
mindeathgralats
=1
maxdeathgralats
=100
healswords
=false
nickname
=Roak
npcrights
=true
sleepwhennoplayers
=true
disconnectifnotmoved
=false
dontchangekills
=true
staffguilds
=Server,Manager,Owner,Admin
onlystaff
=true
normaladminscanchangegralats
=true
rcofftagoverridesignore
=true
playerlisticons
=Online,Away,DND,Working
staff
=Decus_Arillias,sssssssssss
profilevars
=Kills=playerkills,Deaths=playerdeaths,Hearts=playerfullhearts,Spar Rating=playerrating
gmaps
=roak
savelevels
=false
savelevelsmessage
=true
newtilesets
=true
newtilesetlevels
=roak_
weaponorder
=-GUIProfiles,-System/Initialize 


xXziroXx 01-04-2013 02:01 PM

p.s. code tags are the spawn of the devil and annoying to read, please use php ones

scriptless 01-04-2013 02:43 PM

Quote:

Originally Posted by xXziroXx (Post 1711547)
p.s. code tags are the spawn of the devil and annoying to read, please use php ones

I second that!! Wish they removed (code) tages.. php are much nicer, and formated.

MysticalDragon 01-04-2013 09:50 PM

it would be a lot easier and more modifiable if you would just make your own dropping system, imo. Atlantis has a great dropping system, check it out in the code gallery.

sssssssssss 01-05-2013 01:28 AM

I'm avoiding scripting anything default unless we really need it modified. This default system should work, and not touching it period is easiest and most quick (if it'd work like it's supposed to).

I got more responses on the code tag than the issue lol. xD Changed regardless I just thought it would be better to distinguish actual code from something else.

Either way, did anyone have any other ideas? This is quite annoying tbh. It's a default system and should work. Hopefully Stefan will take a look at my forum PM.

From what I have it should be working right? Including the server options and all? Nothing else outside of a custom swing and server options effects this does it?

xXziroXx 01-05-2013 01:35 AM

Change itemdropevents from false to true and it will start working.

sssssssssss 01-05-2013 01:54 AM

Still nothing. Also to remention that it seems you cannot see another player pick up the bush. It's all seems to be handeled clientside for some reason...

-Respawn is done in time in serveroptions like designated, but reconnecting makes all respawn clientside regardless.

-Players can't see the bush/pot/rock someone else picked up disappear

-Still no drops period.

I believe itemdropevents is so you can in fact script your own drops, and it disables default ones, from what I understood anyways it sends out a trigger or something or another to catch it in code instead...

To add, I've also killed and restarted the npc server for some changes, and then reconnected. Hasn't changed a thing.

sssssssssss 01-05-2013 10:16 AM

Just throwing out there one more time before giving up.....

Can anyone see anything else that could be wrong, or think or something that is stopping any of this from happening? If you want to come on the server, I'd be glad to let you.

Crow 01-05-2013 10:48 AM

Quote:

Originally Posted by sssssssssss (Post 1711584)
I'm avoiding scripting anything default unless we really need it modified. This default system should work, and not touching it period is easiest and most quick (if it'd work like it's supposed to).

For the record, that was pretty much my plan on Atlantis: use as much default stuff as possible. Default objects such as bushes and stones are not sufficient, and the default item drop system is not either, even with the events enabled. Go with your own, it'll be a nice experience.

sssssssssss 01-05-2013 06:31 PM

I am, starting today.

I know what ya mean, and it will be better. We just really didn't need a lot of the "custom" stuff on our server because it is in fact classic style. All well... xD


All times are GMT +2. The time now is 10:41 AM.

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