• 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
Joined
Nov 17, 2010
Messages
6,812
Solutions
582
Reaction score
5,372
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:
Xikini can you make a npc with a window that the npc buys item
id 11192 (Vip Coin) 2 crystal coin each
id 2231 (big bone) 70 plat coins each
id 2230 (bone) 40 plat coins each
id 6558 (concentrated demonic blood) 40 plat coins each
id 2144 (black pearls) 30 plat coins each
id 2410 (throwing knives) 45 plat coins each
id 2883 (spiked sword) 1 crystal coin each
(can you also make a log so when i add more items i would know how to add more items to the npc?)
 
Closing thread until further notice.
As of now all pm's are resolved. Any further pm's regarding scripting will be ignored.

A quick closing statement to some of the extra salty people I've met as of late, and to everyone who couldn't even be bothered to like posts.
Some of the work others do for you is usually for self learning on their part, and takes a considerable amount of time out of their lives to help you.
Even the quick stuff, like finding an item_id or quickly browsing for a function and explaining it can take 1 to 6 minutes. This is time spent on you.
Being salty, not liking posts, demanding they help you, accusing them of not helping you fast enough, get over yourselves.
We have no reason to help you. We do it because we enjoy it.
Please change your salty demeanor.
Nobody enjoys. Nobody benefits from it.
We are all here for one reason or another.
Just be civil. If you can't be civil and respect some basic rules, please choose one of the follow to bless yourself with.

  1. Group conversations always change when you think of a clever comment.
  2. Unable to plug in a usb as it will always be the incorrect way around.
  3. Every piece of furniture you own will have uneven legs. Any attempt to fix the wobbliness worsens the wobbliness.
  4. Or if your exceptionally salty, I bestow upon you the gift of competence.

The rest of you out there, this part is for you.
You like our post because it helped you? Great! Glad to see some appreciation.
Posted a thank you, or posted the possible error's with information on how/when the error occurred? Fantastic!
You didn't become salty when someone attempted to help you but it didn't work? Thank you.
You are the shining light's in this community. You are the one's we strive to help.
You are the reason we keep coming back and helping the community.
Please continue being those shining light's.
The community needs you.
I like you, a lot. A lot a lot.
You and your fantastic-ness are appreciated everywhere.
Keep up your amazing attitude and show them salties what's what.

Cheers,

Xikini
 
Welp, I've kindly asked the mods to open up this thread again, and it seems my wish has been granted!

Hopefully there are still some people out there who can benefit from my mediocre knowledge of lua.

Special thank you to the mod who saw my thread. :D

Oh, and the support board can be found here.
Highlighted in hot pink.
Cuz pink is awesome.
 
Welp, I've kindly asked the mods to open up this thread again, and it seems my wish has been granted!

Hopefully there are still some people out there who can benefit from my mediocre knowledge of lua.

Special thank you to the mod who saw my thread.
are u ok ??? Are you back already? :D


he's back !!! :p
 
Welp, I've kindly asked the mods to open up this thread again, and it seems my wish has been granted!

Hopefully there are still some people out there who can benefit from my mediocre knowledge of lua.

Special thank you to the mod who saw my thread. :D

Oh, and the support board can be found here.
Highlighted in hot pink.
Cuz pink is awesome.
Are you ready for spells this time? :D
 
script 1: an Amulet give +500 health and +500 mana ( all vocations )

script 2: would be 5 teleports, on each of them you need x item, if you come to the third and not have the required item , you can go back and go find this item . When you already have the item, you will go straight to 3 teleport, not need the items from one teleport and second teleport . The first teleport you need one item , the second of two items , the third of three items etc .. You need to put them in position x , as shown in the picture,

WWb5qMZ.png


script 3 :
Well, I 've been thinking the following script: It would be basically a system to invite new players to also play. You , within your character , (talkaction in game), could be inviting such a player playing the server. If this NEW player reaches the level 50 , he would gain 10 points and who has invited gain 2 points, if the new player get level 100 , he would gain 25 points, and who has invited 5 Points. Not possible do this with the same ip.
 
Last edited:
Are you ready for spells this time? :D
script 1: an Amulet give +500 health and +500 mana ( all vocations )

script 2: would be 5 teleports, on each of them you need x item, if you come to the third and not have the required item , you can go back and go find this item . When you already have the item, you will go straight to 3 teleport, not need the items from one teleport and second teleport . The first teleport you need one item , the second of two items , the third of three items etc .. You need to put them in position x , as shown in the picture,

WWb5qMZ.png


script 3 :
Well, I 've been thinking the following script: It would be basically a system to invite new players to also play. You , within your account , both in game and on the website could be inviting such a player playing the server. If this NEW player reaches the level 50 , he would gain 10 points and who has invited gain 2 points, if the new player get level 100 , he would gain 25 points, and who has invited 5 Points. Not possible do this with the same ip.
#1
Code:
-- Place these values into item.xml on whichever items you want to use them.

-- this is what you requested.
<attribute key="maxhitpoints" value="500"/>
<attribute key="maxmanapoints" value="500"/>

-- added this in case it's useful
<attribute key="maxhitpointspercent" value="110"/>
<attribute key="maxmanapointspercent" value="110"/>
#2 -- will add this to my to-do list.
#3 -- Please read my first post.
 
#1
Code:
-- Place these values into item.xml on whichever items you want to use them.

-- this is what you requested.
<attribute key="maxhitpoints" value="500"/>
<attribute key="maxmanapoints" value="500"/>

-- added this in case it's useful
<attribute key="maxhitpointspercent" value="110"/>
<attribute key="maxmanapointspercent" value="110"/>
#2 -- will add this to my to-do list.
#3 -- Please read my first post.
Randomly quoted my post and didn't answer me >:^)
 
Need help in this scripts. No working The OTX Server Version: (2.X.S - 3) - Codename: (LORD ZEDD), you can help me?.

It does not indicate any error in the console

Code:
local config = {
timeToRemove = 180,
message = "You now have 3 minutes to exit this room through the teleporter. It will bring you to the next room only during his time or the teleporter will disappear",
tpId = 1387,
bosses = {
["Ushuriel"] = {pos = {x = 959, y = 1436, z = 10}, aid = 1001},
["Zugurosh"] = {pos = {x = 959, y = 1416, z = 10}, aid = 1002},
["Madareth"] = {pos = {x = 989, y = 1418, z = 10}, aid = 1003},
["Annihilon"] = {pos = {x = 1021, y = 1610, z = 10}, aid = 1005},
["Hellgorak"] = {pos = {x = 1022, y = 1444, z = 10}, aid = 1006},
},

brothers ={
["Golgordan"] = {pos = {x = 988, y = 1445, z = 10, stackpos = 1}, aid = 1004, brother = "Latrivan"},
["Latrivan"] = {pos = {x = 988, y = 1445, z = 10, stackpos = 1}, aid = 1004, brother = "Golgordan"},
brothersArea = {
fromPos = {x = 980, y = 1439, z = 10},
toPos = {x = 996, y = 1451, z = 10},
},
},
}

local function removal(position)
doRemoveThing(getTileItemById(position, config.teleportId).uid, 1)
return true
end

function onKill(cid, target, lastHit)
if isMonster(target) then
if config.bosses[getCreatureName(target)] then
local boss = config.bosses[getCreatureName(target)]
local teleport = doCreateItem(config.teleportId, 1, boss.pos)
doItemSetAttribute(teleport, "aid", boss.aid)
doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
addEvent(removal, config.timeToRemove * 1000, boss.pos)
end

if config.brothers[getCreatureName(target)] then
local bros = config.brothers[getCreatureName(target)]
if isMonster(getCreatureByName(bros.brother)) then
if isInRange(getThingPos(getCreatureByName(bros.brother)), config.brothers.brothersArea.fromPos, config.brothers.brothersArea.toPos) then
return true
end
else
local teleport = doCreateItem(config.teleportId, 1, bros.pos)
doItemSetAttribute(teleport, "aid", bros.aid)
doCreatureSay(cid, config.message, TALKTYPE_ORANGE_1)
addEvent(removal, config.timeToRemove * 1000, bros.pos)
end
end
end
return true
end

Code:
<event type="kill" name="inquisitionPortals" event="script" value="inquisition/inquisitionPortals.lua"/>

Code:
registerCreatureEvent(cid, "inquisitionPortals")
 
Need help in this scripts no working The OTX Server Version: (2.X.S - 3) - Codename: (LORD ZEDD), you can help me?.
Randomly quoted my post and didn't answer me >:^)
Please read my first post.
can i've a script that you can't entra teleport until event start? :)
I don't know how your event works.
I'll assume it works with a global event that turns 1 when active, and 0 when not.


data/movements/movements.xml

Code:
<movevent type="StepIn" actionid="45001" event="script" value="script.lua"/>
data/movements/scripts/script.lua
Code:
local global_storage = 11111

function onStepIn(cid, item, position, fromPosition)
     if getGlobalStorageValue(global_storage) < 1 then
         doTeleportThing(cid, fromPosition, false)
     end
     return true
end
 
#1
Code:
-- Place these values into item.xml on whichever items you want to use them.

-- this is what you requested.
<attribute key="maxhitpoints" value="500"/>
<attribute key="maxmanapoints" value="500"/>

-- added this in case it's useful
<attribute key="maxhitpointspercent" value="110"/>
<attribute key="maxmanapointspercent" value="110"/>
#2 -- will add this to my to-do list.
#3 -- Please read my first post.

#3 I have edited my post.

Thank you I really appreciate your help!!
 
Status
Not open for further replies.
Back
Top