The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My mounts wont REMOVE?
Author Message
Ultima One
Journeyman
*

Posts: 238
Likes Given: 7
Likes Received: 10 in 6 posts
Joined: Jan 2013
Reputation: 6

Ultima One

Post: #1
My mounts wont REMOVE?
So, they all work, except when dismounting "argo.remove" does not seem to do anything. No errors. If I put a line above or below it saying "argo.color=07aa" it colors the steed fine... why wont it .remove?

Code:
[itemdef i_donator_horse]
name=Donator Horse Statuette
id=i_pet_horse
type=t_donator_statuette
tdata1=c_horse_tan
weight = 1
on=@create
attr=04

category=donator
subsection=donator pets
description=donator Horse Statuette


[function mount_donator]
if <cant_mount>
return 1
else
src.tag.ondonarmount = 1
serv.newnpc <args>
ref1=<new.uid>
serv.newitem i_memory
new.color=memory_ipet
new.link=<src.uid>
new.cont=<ref1.uid>
new.events -e_donator_mounts
ref1.food=999
ref1.color=<color>
ref1.tag0.donator_mount=<baseid>
ref1.tag0.donator_mount_color=<color>
ref1.tag0.donator_mount_owner=<tag.uid>
ref1.mount <src>
consume
endif


[events e_donator_mounts]    
on=@dismount
if <argo.tag0.donator_mount>
serv.newitem <argo.tag0.donator_mount>
new.cont=<src.uid>
new.color=<argo.tag0.donator_mount_color>
new.tag.uid=<argo.tag0.donator_mount_owner>
src.tag.lastdonarshrink = <new.uid>
src.tag.ondonarmount
argo.remove
src.events -e_donator_mounts
return 1
endif

ULTIMA ONE
The modern, sphere powered Ultima Online server
01-17-2013 06:43 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: My mounts wont REMOVE?
Do you have any custom @Destroy for your npc?
01-17-2013 09:21 AM
Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #3
RE: My mounts wont REMOVE?
This looks suspect: "new.events -e_donator_mounts" ...I don't think you can add an event to an item like this...
01-17-2013 11:58 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: My mounts wont REMOVE?
Actually looking at that line, even if you can add events that way, and I am not saying you can, you are actually removing the event by using the -

[Image: 2nis46r.jpg]
01-17-2013 12:04 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Ultima One
Journeyman
*

Posts: 238
Likes Given: 7
Likes Received: 10 in 6 posts
Joined: Jan 2013
Reputation: 6

Ultima One

Post: #5
RE: My mounts wont REMOVE?
The Event is on the player, not the new item, that -event on the new item must just be a mistake, never noticed it.

Still, the @Dismount event IS firing when dismounting. And running as desired.

Found out, it is FINE if I dismount, but it is only when I get Killed that the .REMOVE does not work. Everything else in the event runs fine and I get the steed statuette in my bag, but it does not remove the mount.

We do have another @Dismount event, which checks if you are hidden when you dismount, if so reveals you. But nothing that should effect the .remove (like I say, it runs the code as I can modify the steed both before and after it, just seems it wont remove it..)

Could someone see if they can remove a steed @dismount when dying while mounted?

ULTIMA ONE
The modern, sphere powered Ultima Online server
01-17-2013 10:48 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #6
RE: My mounts wont REMOVE?
If you are dying argo.remove doesn't fire(bug?), but src.findlayer.25.remove will fire and remove the horse
01-18-2013 12:01 AM
Find all posts by this user Like Post Quote this message in a reply
Ultima One
Journeyman
*

Posts: 238
Likes Given: 7
Likes Received: 10 in 6 posts
Joined: Jan 2013
Reputation: 6

Ultima One

Post: #7
RE: My mounts wont REMOVE?
Thanks dark sun, I will try that when I get in Smile Server got busy very quickly and I need to get my donation items fixed Tongue

ULTIMA ONE
The modern, sphere powered Ultima Online server
01-18-2013 12:50 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Ultima One
Journeyman
*

Posts: 238
Likes Given: 7
Likes Received: 10 in 6 posts
Joined: Jan 2013
Reputation: 6

Ultima One

Post: #8
RE: My mounts wont REMOVE?
Worked a wonder.

Thanks

ULTIMA ONE
The modern, sphere powered Ultima Online server
01-18-2013 07:38 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)