SphereCommunity
System Vendor (REDEED) - Printable Version

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



System Vendor (REDEED) - victorstelzer - 07-20-2012 12:50 AM

Players who want to organize their banks, or even facilitate the placement of your items for sale, can benefit from the concessions system (DEEDS) Shard.
· To use this feature is simple, just go to the seller concessions, located in Trinsic, or any banker, and say what item you want to make a concession. Eg: "REDEED VULCAN", Seller will transform your armor of Vulcan a concession.
· There are some rules for this to work, in the case of armor in general, this has to be in perfect condition (Full Repair) and should be with the shield. All items must be in your backpack.
· There are other items that can also be converted into concessions, here's the command and the corresponding item:
· REDEED <armadura> - Turns armor in a concession, where <armadura> is the name of the material it is made.
· REDEED FORGE - Transforms into a forge compromise.
· REDEED ANVIL - Become an anvil of grant.
· REDEED COINS 100 - Transform 100,000 gold coins in the concession.
· REDEED COINS 500 - Transform 500,000 gold coins in the concession.
· REDEED Cauldron - turns in a Cauldron of Cooking Award.


Help create this script. Can anyone help me ???


RE: System Vendor (REDEED) - Extreme - 07-20-2012 01:53 AM

Cara, para de encher o saco, ninguém aqui vai ficar fazendo script pra você.
Pedir ajuda é uma coisa, pedir o script pronto do jeitinho que você quer não dá.
Se não sabe scriptar e não quer aprender, larga isso.


RE: System Vendor (REDEED) - victorstelzer - 07-20-2012 08:20 AM

[FUNCTION REDEED]
SERV.NEWITEM i_deed
NEW.NAME Deed Gold 500
BOUNCE <NEW>
IF (<ISEMPTY <ARGS>>)
NEW.MOREP=<P>
ELSE
NEW.MOREP=<ARGS>
ENDIF

NEW.ATTR=attr_static

[PLEVEL 4]
REDEED MOEDAS DE 500
---------------------------------------------------------------------

I created the function can someone help me when I click on the second deed it creates 50000gp

I am not able to do in the script?


RE: System Vendor (REDEED) - Shaklaban - 07-20-2012 05:28 PM

PHP Code:
[function check]
if (<
flags>&statf_dead)
    return 
1
else    
    
smessage Cek haline getirmek istediginiz miktari girin:
    
PROMPTCONSOLE para_ceki_callback
endif    

[function 
para_ceki_callback]
if !(<
isnum <args>>)
    
flmessage <def.dil_cek_olmaz_<lng>>
elif (<eval <args>> < 20000)    
    
flmessage <def.dil_cek_min_<lng>>
elif (<eval <args>> > 10000000)
    
flmessage <def.dil_cek_max_20_<lng>>
elif (<gold> < <eval <args>>)
    
flmessage <def.dil_cek_altininiz_yok_<lng>>    
else
    
serv.newitem i_para_cek
    
new.tag.yazan=<name//name of who writes the  check
    
new.tag.miktari=<eval <args>> //amount of gold
    
gold=<eval <gold> - <args>>
    
bounce <new>
endif    

[
itemdef i_para_cek]
id=i_deed
name
=para ceki
type
=t_script
on
=@create
color 
99
attr
=attr_newbie

on
=@click
message 
[<tag.yazan>]
message <eval <tag.miktari>>
return 
1

on
=@clienttooltip
src
.addcliloc 1070722,Newbie <DEF.BR><eval <tag.miktari>><DEF.BR><tag.yazan>
return 
1

on
=@dclick
if (<topobj.uid> = <src.uid>)
    
src.gold = <eval <src.gold> + <tag0.miktari>>
    
remove
else
    
src.sysmessage <def.reach_fail>    
endif
return  


here is my check system, just type .check ingame or call check function on player, you need to set sysmessages.