Quote:
|
Couldn't you also take the templates/player.pl file and add conditions in each event on the player's location, and if their location match up paste in the /zone/player.pl code?
:D |
Quote:
|
anyone have a solution for this that doesn't involve copying and pasting into the 20 somethin odd player.pl's in the quest folder? and i'm still wondering what would happen if the source was changed to allow to load both, the player.pl's that are in the zone folders, as well as the templates one.
|
I would think modifying the source to incorporate this is going to be more involved than it'd take for ya to just go into..
acrylia airplane akanon bothunder cabeast cabwest charasis dreadlands erudnext erudnint felwithea felwitheb freporte freportn gfaydark greatdivide grobb halas hatesfury kaladima kaladimb neriakb neriakc nexus northkarana oggok paineel poair poinnovation pojustice potimea potimeb powater qcat qey2hh1 qeynos qeynos2 qrg rathemtn rivervale sharvahl skyfire solrotower templates thurgadinb tox tutorialb unrest veeshan and write conditions checking if the player is in the zone for each event, though it's going to take a while.. I dunno. That is a lot of files, heh. Technically could edit your source to do this non-quest style, but, that's kind of complicated too. As is you're hitting a block with that limitation of player.pl not being ran on templates\ and each zone.. Don't really have an easy solution. It's going to probably be work no matter what. |
ok I know that this might seem kinda stupid. but I took this code
Code:
if(!isloaded(packagename.c_str())) Code:
if(!isloaded(packagename.c_str()) || isloaded(packagename.c_str())) |
To test, have both player.pl files have an enter zone event. Have the templates file do some emote "A" and the zone file do some emote "B" and see if both run. That's the only conflict I could think of.. both files having the same event.
|
k tried using both sub EVENT_LEVEL_UP and it does the level up from the templates, but NOT from the zone file. so i'm assuming you can't have 2 of the same events, or the one from templates will override the other from the zone. but other then that, I didn't find any other issues.
|
Also your code above will always return true.
if(!isloaded(packagename.c_str()) || isloaded(packagename.c_str())) It's like putting if(1), since you're covering the two possible returns of isloaded(), it can either return 1 (which is on the second half) or 0 (which is on the left half). But yeah. If you do what you just did, you essentially screw all zone-based player.pl files if it's only working off templates. I may have to peek and see if I can solve the event handling to execute the two different player files. *shrugs*.. |
Quote:
|
Quote:
quest::we(type, "message"); should work. This is world emote. |
ah there we go, thats what i've been lookin for, thanx alot.
|
Code:
sub EVENT_LEVEL_UP { |
All times are GMT -4. The time now is 03:21 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.