• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Xikini's Free Scripting Service. [0.3.7 & (0.3.6/0.4)]

Status
Not open for further replies.

Xikini

I whore myself out for likes
Senator
Premium User
Joined
Nov 17, 2010
Messages
6,800
Solutions
582
Reaction score
5,363
Doing quick (30 min or less) scripts for [0.3.7 & (0.3.6/0.4)]
I am not here to fix your broken scripts, although I will give advice if requested.
I am here for script requests of scripts not already available on the forum.
If you require support for your scripting issues please make a thread in the support section.

For clarity's sake,
I will script actionscripts, creaturescripts, globalevents, talkactions, movements, npcs for you.
I will not script spells, weapons, raids or monster scripts.
Additionally, source editing, websites and database queries are a no go as well.

Code:
How to make shorter links to posts.
https://otland.net/threads/234306/page-14#post-2330703
 
Last edited:
¿complain to WibbenZ?, why?, I dont understand u.

Because I merged a bunch of double posts.
XenForo seems to handle posts by index, if you ex got post 3 and I merge 1 and 2 you will get post 1 = dead link pretty much.

I tought I fixed most of them, but since @Xikini used links on every page insted of posting a new thread about scripts etc there is nothing I can do to un-do it.
 
@Israel PaternoThe second of: it's easy to do, but this item, which you want to open, must have option "use with" . If not, will be needed items.otbm edit. Just check the option "useable".So what is the item id?
It's a edited item, otb/dat/spr... I'm thinking in make something like this...

HTML:
<item id="35915" article="a" name="Zanilore portal stone" >
        <attribute key="description" value="A strange stone with a portal to Zanilore." />
    </item>
 
Should only take about 30 minutes to make. (if it even takes that long)
But too annoying to script at work.
I'll make it tomorrow, when I'm off work.
Too many errands after work today.

-- initial thoughts --
movements script to get players into area, count players in area, summon monsters, and put remaining players into the reward area.
global event to spawn and remove teleporter (only visual, has no effect)
login script, to remove players who logged in area. (to prevent extra players from joining event, and also to remove stuck players)
action script, to give players their reward.


-- 2 questions.

Rewards
- I ain't scripting the points in, but I'll leave an area for you to put it in.

- Items, is it multiple choice or random item?
- Are the rewards 1 time rewards or everytime they finish the event?

Event
- is it a timed event? (spawn monsters for 15 minutes, then end?) (aka: survival)
- or is it a completion event? (spawn x monsters, when monsters are killed -> spawn next wave -> repeat until waves exhausted, then send players to reward area.)
-Items, is it multiple choice or random item?
R: Random

- Are the rewards 1 time rewards or everytime they finish the event?
R: Last man in area, he take reward

Spawn of monsters-> per wave of 4 or 5 minutes (3 Wave)(Until the last player is teleported to a safe area and awarded their prize, then clean the room.)

-Global event to spawn and remove teleporter (only visual, has no effect)
R: Some effects to give a little atmosphere, and the message to start / close the event, also the winner.
Nothing yet ?. Tell me if you're going to do my script or not, I've been waiting a lot, :( . I really need it.
 
Hi bro! hey you help me for script fishing monster capture? only fishing monster's
Give me more information.
Tell me exactly how you want the script to work.
 
Give me more information.
Tell me exactly how you want the script to work.

what I need is an object that captures monster that summon only fishing for example is a server "collapser" fishing 1 triton I want that object to capture triton and when they click again on the object summone triton again the problem I have is that the object that I have to capture catches all the monster and I want to only capture the fishing, I hope you understand me
 
what I need is an object that captures monster that summon only fishing for example is a server "collapser" fishing 1 triton I want that object to capture triton and when they click again on the object summone triton again the problem I have is that the object that I have to capture catches all the monster and I want to only capture the fishing, I hope you understand me
Mmm, you'll need to create special monsters for fishing.

"Fished Triton" -> capture with object-> spawn + convince "Triton"
 
I have the monster but not the object to capture
I started something at work..
This is not a working script.
Just posting it cuz I don't wanna re-write it.
Code:
local creature_table = {
    ["monster name 1"] = {}, -- creature name in all lower_case letters
    ["monster name 2"] = {},
    ["monster name 3"] = {},
    ["monster name 4"] = {}
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
    local thing = getThingFromPos(fromPosition)
    if not isMonster(thing) then
        return false
    end
    local index = creature_table[getCreatureName(thing):lower]
    if index then
        -- do stuff
    else
        return false
    end
    return true
end
 
I started something at work..
This is not a working script.
Just posting it cuz I don't wanna re-write it.
Code:
local creature_table = {
    ["monster name 1"] = {}, -- creature name in all lower_case letters
    ["monster name 2"] = {},
    ["monster name 3"] = {},
    ["monster name 4"] = {}
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
    local thing = getThingFromPos(fromPosition)
    if not isMonster(thing) then
        return false
    end
    local index = creature_table[getCreatureName(thing):lower]
    if index then
        -- do stuff
    else
        return false
    end
    return true
end
:lower()
 
Hello I want too make a custom bow/crossbow but I want too add something too it, lets take a fire sword as example.
When I shoot an arrow or an bolt with this weapon it also deals fire, ice, holy or death damage with it. So the normal damage plus an additional elemental damage.
Would this be possible within LUA?

TFS 0.3.6

Weapons XML

<distance id="7839" type="ice" event="function" value="default"/>
 
How I am able to make Step Out tile in temple? example i dont want to people stack on spawn temple position , is it lua or i need to so smth in RME? it looks like this : When I go on tile
Screenshot
And where i want to push player :
Screenshot
or some sqms around , doesen't matter
 
How I am able to make Step Out tile in temple? example i dont want to people stack on spawn temple position , is it lua or i need to so smth in RME? it looks like this : When I go on tile
Screenshot
And where i want to push player :
Screenshot
or some sqms around , doesen't matter
Sorry, I saw this then forgot about it because I was on my way home.

It's hard to tell from your description, but you want it to be impossible for someone to stay on this tile?
mm, okay try this.

Put the ActionID on the tile(s) you want it to work on in the map editor. (reload server after installing of course.)
Lua:
local positions = {
    {-1, -1},
    {-1, 0},
    {-1, 1},
    {1, -1},
    {1, 0},
    {1, 1},
    {0, -1},
    {0, 1},
}

function onStepIn(cid, item, position, fromPosition)
    local rand = math.random(8)
    local new_pos = {x = position.x + positions[rand][1], y = position.y + positions[rand][2], z = position.z}
    doTeleportThing(cid, new_pos, true)
    return true
end

what I need is an object that captures monster that summon only fishing for example is a server "collapser" fishing 1 triton I want that object to capture triton and when they click again on the object summone triton again the problem I have is that the object that I have to capture catches all the monster and I want to only capture the fishing, I hope you understand me
Actually, can you post your current script?
Or send to me via pm?
I can just alter your current script instead of creating a new system that might be more advanced / difficult to understand.
 
Last edited:
Thank you Xikini , but I already made it haha , i just put invisible tile in RME and thats what I mean :D
I'd still suggest to put it in. It's less confusing for players. ;)
Thanks for the update though!
 
xikini can you help me to fix this script? im looking to dismount player if he is using certain outfit and lock usage mount for those outfits too this is my code but it isn't working and it doesn't shows errors in console im using tfs 0.3.7
and im using this script at creature scripts folders
Code:
function onOutfit(cid, old, outfit)
local outfits ={387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410}
if isInArray (outfits, current.lookType) then
doPlayerRemoveMount(cid, mountId)
end
return true
end
 
xikini can you help me to fix this script? im looking to dismount player if he is using certain outfit and lock usage mount for those outfits too this is my code but it isn't working and it doesn't shows errors in console im using tfs 0.3.7
and im using this script at creature scripts folders
Code:
function onOutfit(cid, old, outfit)
local outfits ={387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410}
if isInArray (outfits, current.lookType) then
doPlayerRemoveMount(cid, mountId)
end
return true
end
You won't need to remove the mount.
I have this exact script somewhere in my server folder at home.
I'll either edit this post later on today or tag you in a new post.
 
Status
Not open for further replies.
Back
Top