Duel system - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Duel system (/Thread-Duel-system) |
Duel system - an0n!m0use - 03-21-2016 12:46 AM Hi guys I have problem with my duel system ... 1) PHP Code: [ITEMDEF i_arena_first] ERROR:Its working, but sphere dont like that 2) About SERV.NEWITEM i_duel_memory I have 5 stones and 5 different coordinates ... and i wonna make 1 func for all them PHP Code: [ITEMDEF i_duel_memory] RE: Duel system - rastrero - 03-21-2016 03:34 AM not enought info for helping you. anyway. ARGO.EQUIP <NEW> // 15:47:ERROR: Undefined keyword 'ARGO.EQUIP' This error prob happens cos a invaed target. just an npc or an item. U dont need to put <new.uid>, <new> is enought RE: Duel system - an0n!m0use - 03-21-2016 05:36 AM (03-21-2016 03:34 AM)rastrero Wrote: not enought info for helping you.Example: You have 2 stones - i_arena_first and i_arena_second and one function for two stones: [FUNCTION f_select_opponent] and one [ITEMDEF i_duel_memory] If [ITEMDEF i_arena_first] - first stone, first player go to ARENA_1_1 coordinates, and second to other ARENA_1_2 coordinates ... If this [ITEMDEF i_arena_second] frst player go to ARENA_2_1 and second player go to ARENA_2_2 PHP Code: [DEFNAME DEF_DUEL_CONFIG] I wanna know, it's real using one function for a lot of duel stones ... or i need write for every stone individual function .... Quote:ARGO.EQUIP <NEW> // 15:47:ERROR: Undefined keyword 'ARGO.EQUIP'Thx, but problem not solved RE: Duel system - rastrero - 03-23-2016 09:45 PM (03-21-2016 03:34 AM)rastrero Wrote: ARGO.EQUIP <NEW> // 15:47:ERROR: Undefined keyword 'ARGO.EQUIP'This wasnt a fix. Just a note, dont put uid if it is not neccesary. about your problem... Try to change to this TRYSRC <argo> NEW.equip About the other thing... hmm You can make a for though all DUELSTONES using this. "FORINSTANCES" U need to check which stone is not in use. When find one, u got to use that stone for the duel and stop the loop. RE: Duel system - an0n!m0use - 03-24-2016 08:11 AM (03-23-2016 09:45 PM)rastrero Wrote: TRYSRC <argo> NEW.equipPerfect ! Thx ! Quote:You can make a for though all DUELSTONES using this.I can not understand how it works Maybe some example or hint ? RE: Duel system - rastrero - 03-24-2016 12:44 PM This is the example you are looking for. Code: [FUNCTION f_myfunction] |