SphereCommunity
Some problem .... - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Some problem .... (/Thread-Some-problem)

Pages: 1 2 3


RE: Some problem .... - Extreme - 09-14-2013 03:03 AM

PHP Code:
SERV.NEWITEM=i_pet_llama,1,<SRC>
SRC.EQUIP <NEW> 



RE: Some problem .... - an0n!m0use - 09-18-2013 04:41 AM

(09-14-2013 03:03 AM)Extreme Wrote:  
PHP Code:
SERV.NEWITEM=i_pet_llama,1,<SRC>
SRC.EQUIP <NEW> 
No, it's not working Sad


RE: Some problem .... - XuN - 09-18-2013 05:21 AM

[function mountcreate]
serv.newnpc=<args>
ref1=<new>
serv.newitem=i_memory
new.color=MEMORY_IPET
new.link=<ref1>
new.cont=<ref1>
ref1.p=<p>
//ref1.color=your_color_if_any
dclick=<ref1>
events +e_dismount_remover

[events e_dismount_remover]
ON=@Dismount
ref1=<findlayer.25.more2>
ref1.remove
return 1


RE: Some problem .... - an0n!m0use - 09-20-2013 06:47 PM

(09-18-2013 05:21 AM)XuN Wrote:  [function mountcreate]
serv.newnpc=<args>
ref1=<new>
serv.newitem=i_memory
new.color=MEMORY_IPET
new.link=<ref1>
new.cont=<ref1>
ref1.p=<p>
//ref1.color=your_color_if_any
dclick=<ref1>
events +e_dismount_remover

[events e_dismount_remover]
ON=@Dismount
ref1=<findlayer.25.more2>
ref1.remove
return 1
Sorry for my stupid questions ... How use this script Big Grin


RE: Some problem .... - XuN - 09-20-2013 09:29 PM

Well, you had this in your first post

Code:
On=2
    if (<distance>>3)
        src.sysmessage You can't reach that
    elseif (<src.findlayer.25.uid>)
        src.sysmessage @55 You are already mounted!
        sdialog d_eq_stone
    else
        serv.newitem=i_mt_ostard_zostrich
        new.name=Zostrich
        new.more2 <src>
        new.equip <src>
    endif
    return 1

You just have to change the code between 'else' and 'endif' to this
Code:
else
mountcreate=c_llama (or whatever NPC id)
endif

And it will mount you in this mount (in case, of course, it's rideable) and it will dissapear on dismount without any track of it Smile


RE: Some problem .... - an0n!m0use - 09-20-2013 11:58 PM

(09-20-2013 09:29 PM)XuN Wrote:  
Code:
else
mountcreate=c_llama (or whatever NPC id)
endif
And it will mount you in this mount (in case, of course, it's rideable) and it will dissapear on dismount without any track of it Smile
Wow, nice Smile
But it not sat on mount automatically Sad It create near me ...


RE: Some problem .... - XuN - 09-21-2013 07:22 AM

Wich version are you using? it works fine for me, also check that you're not a Gargoyle when trying.


RE: Some problem .... - an0n!m0use - 09-22-2013 11:00 PM

(09-21-2013 07:22 AM)XuN Wrote:  Wich version are you using? it works fine for me, also check that you're not a Gargoyle when trying.
SphereSvr V0.56-Nightly 2011-09-25


RE: Some problem .... - Mordaunt - 09-22-2013 11:26 PM

Why are you using a 56b nightly????


RE: Some problem .... - XuN - 09-22-2013 11:39 PM

Then you should focus on update your version, it will make your live easier Smile. Not only for this only function working but hundreds of changes and improvements on the server itself.