TFS 1.0 Last Man Standing By Nevix

Discussion in 'GlobalEvents, Spells & CreatureEvents' started by nevix, Sep 20, 2014.

  1. yogiikke

    yogiikke :D

    Joined:
    Mar 24, 2013
    Messages:
    59

    i cant script im trying to learn it but i probably fail as useual :D i learn more if u completed it so i can get the rules u made into my head tough :p:( but ill see what i can do

    question did someone told you i was trying to learn lua code or just random guesse?
     
  2. nevix

    nevix Tunzodus.net

    Joined:
    Mar 31, 2010
    Messages:
    356
    I learned everything by myself, I tried 100 times and one was Successful. So use your brains and do your best.


    Code:
    local firstrandom = math.random(1,10) -- CHANCE 1 of 10
    local itemget_id1 = 2160
    local itemget_id1_count = 100
    local itemget_id2 = 2160
    local itemget_id2_count = 2
    
    if (firstrandom == 1) then
    doPlayerAddItem(cid,itemget_id1, itemget_id1_count) 
    elseif(firstrandom == 2) then
    doPlayerAddItem(cid,itemget_id2, itemget_id2_count)
    end
    If you got number 1 or 2 you will get crystal coins, you can increase chance if you want.



    you can add more and more, everything whatever you want.
     
    Hugofasima likes this.
  3. yogiikke

    yogiikke :D

    Joined:
    Mar 24, 2013
    Messages:
    59
    ill try :p thanks.
     
  4. hellyea

    hellyea OT-Fan

    Joined:
    Jan 26, 2009
    Messages:
    83
    Can some1 tell me why the TP isnt teleporting me?
     
  5. droox

    droox Member

    Joined:
    Jun 26, 2013
    Messages:
    47
    I wonder if it is possible to change the points of reward for an item?
     
  6. Zistonick

    Zistonick Member

    Joined:
    Mar 24, 2010
    Messages:
    179
    How can we change the reward system? I want the winner won a item not premium points
     
  7. VitorNM

    VitorNM New Member

    Joined:
    Sep 18, 2015
    Messages:
    10
    map to this event?
     
  8. Amiroslo

    Amiroslo Well-Known Member

    Joined:
    Jul 28, 2009
    Messages:
    6,377
    Looks amazing, can this be converted to 0.4? because old ones are bad
     
  9. nevix

    nevix Tunzodus.net

    Joined:
    Mar 31, 2010
    Messages:
    356
    No idea I never use 0.4. Sorry can't help with that, I think 0.4 doesn't support spectators function, but of course you can try.
     
  10. viking

    viking Banned User

    Joined:
    Aug 20, 2015
    Messages:
    323
    Workds on tfs 1.2 ?
     
  11. nevix

    nevix Tunzodus.net

    Joined:
    Mar 31, 2010
    Messages:
    356
    Yes
     
  12. Guilherme sua

    Guilherme sua New Member

    Joined:
    Dec 19, 2015
    Messages:
    13
    Script the guy works perfectly , however when it comes to the fight time the two players are teleported out and says it has the 2 players . know WHAT will you?
     
  13. TibiaLand

    TibiaLand Member

    Joined:
    Oct 20, 2013
    Messages:
    42
    working on tfs 1.2! :D my map no have positions in the script can upload event map???

    this event have a .php for gesior 2012??
     
    Last edited: Jun 3, 2016
  14. God Mythera

    God Mythera Well-Known Member

    Joined:
    Aug 11, 2012
    Messages:
    1,870
    This script is for tfs 1.0 right? Because when i try to use script it says something about 'docreateitem' and wont spawn the teleport to join last man standing ; S
     
  15. fishie

    fishie fishies-war

    Joined:
    Oct 27, 2016
    Messages:
    78
    Been trying to get this to work all day, ive added everything and edited the tps but the event never starts?

    this is my globalevents.xml i set it to a low time to test it.
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <globalevents>
       <globalevent type="startup" name="ServerStartup" script="startup.lua" />
       <globalevent type="record" name="PlayerRecord" script="record.lua" />
       <globalevent name="Server Save" time="09:55:00" script="serversave.lua" />
       <globalevent name="Last Man Standing" interval="3000" script="scripts/lms.lua"/>
       <!--
       <globalevent name="timer_example" time="12:00:00" script="my_script.lua" />
       -->
    </globalevents>
    Im using tfs. 1.3
     

Share This Page